RegexEntity Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. language. luis. authoring. models. RegexEntity
- com.
public class RegexEntity
Regular Expression Entity Extractor.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
name()
Get the name value. |
String |
regexPattern()
Get the regexPattern value. |
List<String> |
roles()
Get the roles value. |
Regex |
withName(String name)
Set the name value. |
Regex |
withRegexPattern(String regexPattern)
Set the regexPattern value. |
Regex |
withRoles(List<String> roles)
Set the roles value. |
Method Details
name
public String name()
Get the name value.
Returns:
the name value
regexPattern
public String regexPattern()
Get the regexPattern value.
Returns:
the regexPattern value
roles
public List
Get the roles value.
Returns:
the roles value
withName
public RegexEntity withName(String name)
Set the name value.
Parameters:
name
- the name value to set
Returns:
the RegexEntity object itself.
withRegexPattern
public RegexEntity withRegexPattern(String regexPattern)
Set the regexPattern value.
Parameters:
regexPattern
- the regexPattern value to set
Returns:
the RegexEntity object itself.
withRoles
public RegexEntity withRoles(List
Set the roles value.
Parameters:
roles
- the roles value to set
Returns:
the RegexEntity object itself.