EntityPrediction Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. language. luis. authoring. models. EntityPrediction
- com.
public class EntityPrediction
A suggested entity.
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 |
phrase()
Get the phrase value. |
int |
startTokenIndex()
Get the startTokenIndex value. |
Entity |
withChildren(List<EntityPrediction> children)
Set the children value. |
Entity |
withEndTokenIndex(int endTokenIndex)
Set the endTokenIndex value. |
Entity |
withEntityName(String entityName)
Set the entityName value. |
Entity |
withPhrase(String phrase)
Set the phrase 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:
phrase
public String phrase()
Get the phrase value.
Returns:
startTokenIndex
public int startTokenIndex()
Get the startTokenIndex value.
Returns:
withChildren
public EntityPrediction withChildren(List
Set the children value.
Parameters:
Returns:
withEndTokenIndex
public EntityPrediction withEndTokenIndex(int endTokenIndex)
Set the endTokenIndex value.
Parameters:
Returns:
withEntityName
public EntityPrediction withEntityName(String entityName)
Set the entityName value.
Parameters:
Returns:
withPhrase
public EntityPrediction withPhrase(String phrase)
Set the phrase value.
Parameters:
Returns:
withStartTokenIndex
public EntityPrediction withStartTokenIndex(int startTokenIndex)
Set the startTokenIndex value.
Parameters:
Returns:
Applies to
Azure SDK for Java