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

EntityLabelObject 类

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

public class EntityLabelObject

定义示例中提取的实体的实体类型和位置。

方法摘要

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

获取子级值。

int endCharIndex()

获取 endCharIndex 值。

String entityName()

获取 entityName 值。

String role()

获取角色值。

int startCharIndex()

获取 startCharIndex 值。

EntityLabelObject withChildren(List<EntityLabelObject> children)

设置子级值。

EntityLabelObject withEndCharIndex(int endCharIndex)

设置 endCharIndex 值。

EntityLabelObject withEntityName(String entityName)

设置 entityName 值。

EntityLabelObject withRole(String role)

设置角色值。

EntityLabelObject withStartCharIndex(int startCharIndex)

设置 startCharIndex 值。

方法详细信息

children

public List children()

获取子级值。

Returns:

子级值

endCharIndex

public int endCharIndex()

获取 endCharIndex 值。

Returns:

endCharIndex 值

entityName

public String entityName()

获取 entityName 值。

Returns:

entityName 值

role

public String role()

获取角色值。

Returns:

角色值

startCharIndex

public int startCharIndex()

获取 startCharIndex 值。

Returns:

startCharIndex 值

withChildren

public EntityLabelObject withChildren(List children)

设置子级值。

Parameters:

children - 要设置的子级值

Returns:

EntityLabelObject 对象本身。

withEndCharIndex

public EntityLabelObject withEndCharIndex(int endCharIndex)

设置 endCharIndex 值。

Parameters:

endCharIndex - 要设置的 endCharIndex 值

Returns:

EntityLabelObject 对象本身。

withEntityName

public EntityLabelObject withEntityName(String entityName)

设置 entityName 值。

Parameters:

entityName - 要设置的 entityName 值

Returns:

EntityLabelObject 对象本身。

withRole

public EntityLabelObject withRole(String role)

设置角色值。

Parameters:

role - 要设置的角色值

Returns:

EntityLabelObject 对象本身。

withStartCharIndex

public EntityLabelObject withStartCharIndex(int startCharIndex)

设置 startCharIndex 值。

Parameters:

startCharIndex - 要设置的 startCharIndex 值

Returns:

EntityLabelObject 对象本身。

适用于