Class EntityLabel
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityLabel
-
public class EntityLabel extends Object
Defines the entity type and position of the extracted entity within the example.
-
-
Constructor Summary
Constructors Constructor Description EntityLabel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EntityLabel>
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.EntityLabel
withChildren(List<EntityLabel> children)
Set the children value.EntityLabel
withEndTokenIndex(int endTokenIndex)
Set the endTokenIndex value.EntityLabel
withEntityName(String entityName)
Set the entityName value.EntityLabel
withRole(String role)
Set the role value.EntityLabel
withRoleId(UUID roleId)
Set the roleId value.EntityLabel
withStartTokenIndex(int startTokenIndex)
Set the startTokenIndex value.
-
-
-
Method Detail
-
entityName
public String entityName()
Get the entityName value.- Returns:
- the entityName value
-
withEntityName
public EntityLabel withEntityName(String entityName)
Set the entityName value.- Parameters:
entityName
- the entityName value to set- Returns:
- the EntityLabel object itself.
-
startTokenIndex
public int startTokenIndex()
Get the startTokenIndex value.- Returns:
- the startTokenIndex value
-
withStartTokenIndex
public EntityLabel withStartTokenIndex(int startTokenIndex)
Set the startTokenIndex value.- Parameters:
startTokenIndex
- the startTokenIndex value to set- Returns:
- the EntityLabel object itself.
-
endTokenIndex
public int endTokenIndex()
Get the endTokenIndex value.- Returns:
- the endTokenIndex value
-
withEndTokenIndex
public EntityLabel withEndTokenIndex(int endTokenIndex)
Set the endTokenIndex value.- Parameters:
endTokenIndex
- the endTokenIndex value to set- Returns:
- the EntityLabel object itself.
-
role
public String role()
Get the role value.- Returns:
- the role value
-
withRole
public EntityLabel withRole(String role)
Set the role value.- Parameters:
role
- the role value to set- Returns:
- the EntityLabel object itself.
-
roleId
public UUID roleId()
Get the roleId value.- Returns:
- the roleId value
-
withRoleId
public EntityLabel withRoleId(UUID roleId)
Set the roleId value.- Parameters:
roleId
- the roleId value to set- Returns:
- the EntityLabel object itself.
-
children
public List<EntityLabel> children()
Get the children value.- Returns:
- the children value
-
withChildren
public EntityLabel withChildren(List<EntityLabel> children)
Set the children value.- Parameters:
children
- the children value to set- Returns:
- the EntityLabel object itself.
-
-