EntityLabelObject Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. language. luis. authoring. models. EntityLabelObject
- com.
public class EntityLabelObject
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 |
endCharIndex()
Get the endCharIndex value. |
String |
entityName()
Get the entityName value. |
String |
role()
Get the role value. |
int |
startCharIndex()
Get the startCharIndex value. |
Entity |
withChildren(List<EntityLabelObject> children)
Set the children value. |
Entity |
withEndCharIndex(int endCharIndex)
Set the endCharIndex value. |
Entity |
withEntityName(String entityName)
Set the entityName value. |
Entity |
withRole(String role)
Set the role value. |
Entity |
withStartCharIndex(int startCharIndex)
Set the startCharIndex value. |
Method Details
children
public List
Get the children value.
Returns:
endCharIndex
public int endCharIndex()
Get the endCharIndex value.
Returns:
entityName
public String entityName()
Get the entityName value.
Returns:
role
public String role()
Get the role value.
Returns:
startCharIndex
public int startCharIndex()
Get the startCharIndex value.
Returns:
withChildren
public EntityLabelObject withChildren(List
Set the children value.
Parameters:
Returns:
withEndCharIndex
public EntityLabelObject withEndCharIndex(int endCharIndex)
Set the endCharIndex value.
Parameters:
Returns:
withEntityName
public EntityLabelObject withEntityName(String entityName)
Set the entityName value.
Parameters:
Returns:
withRole
public EntityLabelObject withRole(String role)
Set the role value.
Parameters:
Returns:
withStartCharIndex
public EntityLabelObject withStartCharIndex(int startCharIndex)
Set the startCharIndex value.
Parameters:
Returns:
Applies to
Azure SDK for Java