Class EntityPrediction
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityPrediction
-
public class EntityPrediction extends Object
A suggested entity.
-
-
Constructor Summary
Constructors Constructor Description EntityPrediction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EntityPrediction>
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.EntityPrediction
withChildren(List<EntityPrediction> children)
Set the children value.EntityPrediction
withEndTokenIndex(int endTokenIndex)
Set the endTokenIndex value.EntityPrediction
withEntityName(String entityName)
Set the entityName value.EntityPrediction
withPhrase(String phrase)
Set the phrase value.EntityPrediction
withStartTokenIndex(int startTokenIndex)
Set the startTokenIndex value.
-
-
-
Method Detail
-
entityName
public String entityName()
Get the entityName value.- Returns:
- the entityName value
-
withEntityName
public EntityPrediction withEntityName(String entityName)
Set the entityName value.- Parameters:
entityName
- the entityName value to set- Returns:
- the EntityPrediction object itself.
-
startTokenIndex
public int startTokenIndex()
Get the startTokenIndex value.- Returns:
- the startTokenIndex value
-
withStartTokenIndex
public EntityPrediction withStartTokenIndex(int startTokenIndex)
Set the startTokenIndex value.- Parameters:
startTokenIndex
- the startTokenIndex value to set- Returns:
- the EntityPrediction object itself.
-
endTokenIndex
public int endTokenIndex()
Get the endTokenIndex value.- Returns:
- the endTokenIndex value
-
withEndTokenIndex
public EntityPrediction withEndTokenIndex(int endTokenIndex)
Set the endTokenIndex value.- Parameters:
endTokenIndex
- the endTokenIndex value to set- Returns:
- the EntityPrediction object itself.
-
phrase
public String phrase()
Get the phrase value.- Returns:
- the phrase value
-
withPhrase
public EntityPrediction withPhrase(String phrase)
Set the phrase value.- Parameters:
phrase
- the phrase value to set- Returns:
- the EntityPrediction object itself.
-
children
public List<EntityPrediction> children()
Get the children value.- Returns:
- the children value
-
withChildren
public EntityPrediction withChildren(List<EntityPrediction> children)
Set the children value.- Parameters:
children
- the children value to set- Returns:
- the EntityPrediction object itself.
-
-