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

EntityLabel 类

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

public class EntityLabel

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

方法摘要

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

获取子级值。

int endTokenIndex()

获取 endTokenIndex 值。

String entityName()

获取 entityName 值。

String role()

获取角色值。

UUID roleId()

获取 roleId 值。

int startTokenIndex()

获取 startTokenIndex 值。

EntityLabel withChildren(List<EntityLabel> children)

设置子级值。

EntityLabel withEndTokenIndex(int endTokenIndex)

设置 endTokenIndex 值。

EntityLabel withEntityName(String entityName)

设置 entityName 值。

EntityLabel withRole(String role)

设置角色值。

EntityLabel withRoleId(UUID roleId)

设置 roleId 值。

EntityLabel withStartTokenIndex(int startTokenIndex)

设置 startTokenIndex 值。

方法详细信息

children

public List children()

获取子级值。

Returns:

子级值

endTokenIndex

public int endTokenIndex()

获取 endTokenIndex 值。

Returns:

endTokenIndex 值

entityName

public String entityName()

获取 entityName 值。

Returns:

entityName 值

role

public String role()

获取角色值。

Returns:

角色值

roleId

public UUID roleId()

获取 roleId 值。

Returns:

roleId 值

startTokenIndex

public int startTokenIndex()

获取 startTokenIndex 值。

Returns:

startTokenIndex 值

withChildren

public EntityLabel withChildren(List children)

设置子级值。

Parameters:

children - 要设置的子级值

Returns:

EntityLabel 对象本身。

withEndTokenIndex

public EntityLabel withEndTokenIndex(int endTokenIndex)

设置 endTokenIndex 值。

Parameters:

endTokenIndex - 要设置的 endTokenIndex 值

Returns:

EntityLabel 对象本身。

withEntityName

public EntityLabel withEntityName(String entityName)

设置 entityName 值。

Parameters:

entityName - 要设置的 entityName 值

Returns:

EntityLabel 对象本身。

withRole

public EntityLabel withRole(String role)

设置角色值。

Parameters:

role - 要设置的角色值

Returns:

EntityLabel 对象本身。

withRoleId

public EntityLabel withRoleId(UUID roleId)

设置 roleId 值。

Parameters:

roleId - 要设置的 roleId 值

Returns:

EntityLabel 对象本身。

withStartTokenIndex

public EntityLabel withStartTokenIndex(int startTokenIndex)

设置 startTokenIndex 值。

Parameters:

startTokenIndex - 要设置的 startTokenIndex 值

Returns:

EntityLabel 对象本身。

适用于