你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
JSONEntity 类
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. language. luis. authoring. models. JSONEntity
- com.
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
获取子级值。
Returns:
endPos
public int endPos()
获取 endPos 值。
Returns:
entity
public String entity()
获取实体值。
Returns:
role
public String role()
获取角色值。
Returns:
startPos
public int startPos()
获取 startPos 值。
Returns:
withChildren
public JSONEntity withChildren(List
设置子级值。
Parameters:
Returns:
withEndPos
public JSONEntity withEndPos(int endPos)
设置 endPos 值。
Parameters:
Returns:
withEntity
public JSONEntity withEntity(String entity)
设置实体值。
Parameters:
Returns:
withRole
public JSONEntity withRole(String role)
设置角色值。
Parameters:
Returns:
withStartPos
public JSONEntity withStartPos(int startPos)
设置 startPos 值。
Parameters:
Returns: