EntityLabel Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. language. luis. authoring. models. EntityLabel
- com.
public class EntityLabel
Defines the entity type and position of the extracted entity within the example.
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Entity |
children()
Get the children value. |
int |
endTokenIndex()
Get the endTokenIndex value. |
String |
entityName()
Get the entityName value. |
String |
role()
Get the role value. |
UUID |
roleId()
Get the roleId value. |
int |
startTokenIndex()
Get the startTokenIndex value. |
Entity |
withChildren(List<EntityLabel> children)
Set the children value. |
Entity |
withEndTokenIndex(int endTokenIndex)
Set the endTokenIndex value. |
Entity |
withEntityName(String entityName)
Set the entityName value. |
Entity |
withRole(String role)
Set the role value. |
Entity |
withRoleId(UUID roleId)
Set the roleId value. |
Entity |
withStartTokenIndex(int startTokenIndex)
Set the startTokenIndex value. |
Method Details
children
public List
Get the children value.
Returns:
endTokenIndex
public int endTokenIndex()
Get the endTokenIndex value.
Returns:
entityName
public String entityName()
Get the entityName value.
Returns:
role
public String role()
Get the role value.
Returns:
roleId
public UUID roleId()
Get the roleId value.
Returns:
startTokenIndex
public int startTokenIndex()
Get the startTokenIndex value.
Returns:
withChildren
public EntityLabel withChildren(List
Set the children value.
Parameters:
Returns:
withEndTokenIndex
public EntityLabel withEndTokenIndex(int endTokenIndex)
Set the endTokenIndex value.
Parameters:
Returns:
withEntityName
public EntityLabel withEntityName(String entityName)
Set the entityName value.
Parameters:
Returns:
withRole
public EntityLabel withRole(String role)
Set the role value.
Parameters:
Returns:
withRoleId
public EntityLabel withRoleId(UUID roleId)
Set the roleId value.
Parameters:
Returns:
withStartTokenIndex
public EntityLabel withStartTokenIndex(int startTokenIndex)
Set the startTokenIndex value.
Parameters:
Returns:
Applies to
Azure SDK for Java