EntityPrediction Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityPrediction

public class EntityPrediction

A suggested entity.

Method Summary

Modifier and Type Method and 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 Details

children

public List children()

Get the children value.

Returns:

the children value

endTokenIndex

public int endTokenIndex()

Get the endTokenIndex value.

Returns:

the endTokenIndex value

entityName

public String entityName()

Get the entityName value.

Returns:

the entityName value

phrase

public String phrase()

Get the phrase value.

Returns:

the phrase value

startTokenIndex

public int startTokenIndex()

Get the startTokenIndex value.

Returns:

the startTokenIndex value

withChildren

public EntityPrediction withChildren(List children)

Set the children value.

Parameters:

children - the children value to set

Returns:

the EntityPrediction object itself.

withEndTokenIndex

public EntityPrediction withEndTokenIndex(int endTokenIndex)

Set the endTokenIndex value.

Parameters:

endTokenIndex - the endTokenIndex value to set

Returns:

the EntityPrediction object itself.

withEntityName

public EntityPrediction withEntityName(String entityName)

Set the entityName value.

Parameters:

entityName - the entityName value to set

Returns:

the EntityPrediction object itself.

withPhrase

public EntityPrediction withPhrase(String phrase)

Set the phrase value.

Parameters:

phrase - the phrase value to set

Returns:

the EntityPrediction object itself.

withStartTokenIndex

public EntityPrediction withStartTokenIndex(int startTokenIndex)

Set the startTokenIndex value.

Parameters:

startTokenIndex - the startTokenIndex value to set

Returns:

the EntityPrediction object itself.

Applies to