你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
EntityLabelObject 类
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. language. luis. authoring. models. EntityLabelObject
- com.
public class EntityLabelObject
定义示例中提取的实体的实体类型和位置。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
List<Entity |
children()
获取子级值。 |
int |
endCharIndex()
获取 endCharIndex 值。 |
String |
entityName()
获取 entityName 值。 |
String |
role()
获取角色值。 |
int |
startCharIndex()
获取 startCharIndex 值。 |
Entity |
withChildren(List<EntityLabelObject> children)
设置子级值。 |
Entity |
withEndCharIndex(int endCharIndex)
设置 endCharIndex 值。 |
Entity |
withEntityName(String entityName)
设置 entityName 值。 |
Entity |
withRole(String role)
设置角色值。 |
Entity |
withStartCharIndex(int startCharIndex)
设置 startCharIndex 值。 |
方法详细信息
children
public List
获取子级值。
Returns:
endCharIndex
public int endCharIndex()
获取 endCharIndex 值。
Returns:
entityName
public String entityName()
获取 entityName 值。
Returns:
role
public String role()
获取角色值。
Returns:
startCharIndex
public int startCharIndex()
获取 startCharIndex 值。
Returns:
withChildren
public EntityLabelObject withChildren(List
设置子级值。
Parameters:
Returns:
withEndCharIndex
public EntityLabelObject withEndCharIndex(int endCharIndex)
设置 endCharIndex 值。
Parameters:
Returns:
withEntityName
public EntityLabelObject withEntityName(String entityName)
设置 entityName 值。
Parameters:
Returns:
withRole
public EntityLabelObject withRole(String role)
设置角色值。
Parameters:
Returns:
withStartCharIndex
public EntityLabelObject withStartCharIndex(int startCharIndex)
设置 startCharIndex 值。
Parameters:
Returns: