你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EntityPrediction 类

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

public class EntityPrediction

建议的实体。

方法摘要

修饰符和类型 方法和描述
List<EntityPrediction> children()

获取子级值。

int endTokenIndex()

获取 endTokenIndex 值。

String entityName()

获取 entityName 值。

String phrase()

获取短语值。

int startTokenIndex()

获取 startTokenIndex 值。

EntityPrediction withChildren(List<EntityPrediction> children)

设置子级值。

EntityPrediction withEndTokenIndex(int endTokenIndex)

设置 endTokenIndex 值。

EntityPrediction withEntityName(String entityName)

设置 entityName 值。

EntityPrediction withPhrase(String phrase)

设置短语值。

EntityPrediction withStartTokenIndex(int startTokenIndex)

设置 startTokenIndex 值。

方法详细信息

children

public List children()

获取子级值。

Returns:

子值

endTokenIndex

public int endTokenIndex()

获取 endTokenIndex 值。

Returns:

endTokenIndex 值

entityName

public String entityName()

获取 entityName 值。

Returns:

entityName 值

phrase

public String phrase()

获取短语值。

Returns:

短语值

startTokenIndex

public int startTokenIndex()

获取 startTokenIndex 值。

Returns:

startTokenIndex 值

withChildren

public EntityPrediction withChildren(List children)

设置子级值。

Parameters:

children - 要设置的子级值

Returns:

EntityPrediction 对象本身。

withEndTokenIndex

public EntityPrediction withEndTokenIndex(int endTokenIndex)

设置 endTokenIndex 值。

Parameters:

endTokenIndex - 要设置的 endTokenIndex 值

Returns:

EntityPrediction 对象本身。

withEntityName

public EntityPrediction withEntityName(String entityName)

设置 entityName 值。

Parameters:

entityName - 要设置的 entityName 值

Returns:

EntityPrediction 对象本身。

withPhrase

public EntityPrediction withPhrase(String phrase)

设置短语值。

Parameters:

phrase - 要设置的短语值

Returns:

EntityPrediction 对象本身。

withStartTokenIndex

public EntityPrediction withStartTokenIndex(int startTokenIndex)

设置 startTokenIndex 值。

Parameters:

startTokenIndex - 要设置的 startTokenIndex 值

Returns:

EntityPrediction 对象本身。

适用于