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

JSONEntity 类

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

public class JSONEntity

导出的模型 - 从言语中提取的实体。

方法摘要

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

获取子级值。

int endPos()

获取 endPos 值。

String entity()

获取实体值。

String role()

获取角色值。

int startPos()

获取 startPos 值。

JSONEntity withChildren(List<JSONEntity> children)

设置子级值。

JSONEntity withEndPos(int endPos)

设置 endPos 值。

JSONEntity withEntity(String entity)

设置实体值。

JSONEntity withRole(String role)

设置角色值。

JSONEntity withStartPos(int startPos)

设置 startPos 值。

方法详细信息

children

public List children()

获取子级值。

Returns:

子值

endPos

public int endPos()

获取 endPos 值。

Returns:

endPos 值

entity

public String entity()

获取实体值。

Returns:

实体值

role

public String role()

获取角色值。

Returns:

角色值

startPos

public int startPos()

获取 startPos 值。

Returns:

startPos 值

withChildren

public JSONEntity withChildren(List children)

设置子级值。

Parameters:

children - 要设置的子级值

Returns:

JSONEntity 对象本身。

withEndPos

public JSONEntity withEndPos(int endPos)

设置 endPos 值。

Parameters:

endPos - 要设置的 endPos 值

Returns:

JSONEntity 对象本身。

withEntity

public JSONEntity withEntity(String entity)

设置实体值。

Parameters:

entity - 要设置的实体值

Returns:

JSONEntity 对象本身。

withRole

public JSONEntity withRole(String role)

设置角色值。

Parameters:

role - 要设置的角色值

Returns:

JSONEntity 对象本身。

withStartPos

public JSONEntity withStartPos(int startPos)

设置 startPos 值。

Parameters:

startPos - 要设置的 startPos 值

Returns:

JSONEntity 对象本身。

适用于