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

EntityModel 类

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.luis.runtime.models.EntityModel

public class EntityModel

从言语中提取的实体。

方法摘要

修饰符和类型 方法和描述
Map<String, Object> additionalProperties()

获取 additionalProperties 值。

int endIndex()

获取 endIndex 值。

String entity()

获取实体值。

int startIndex()

获取 startIndex 值。

String type()

获取类型值。

EntityModel withAdditionalProperties(Map<String, Object> additionalProperties)

设置 additionalProperties 值。

EntityModel withEndIndex(int endIndex)

设置 endIndex 值。

EntityModel withEntity(String entity)

设置实体值。

EntityModel withStartIndex(int startIndex)

设置 startIndex 值。

EntityModel withType(String type)

设置类型值。

方法详细信息

additionalProperties

public Map additionalProperties()

获取 additionalProperties 值。

Returns:

additionalProperties 值

endIndex

public int endIndex()

获取 endIndex 值。

Returns:

endIndex 值

entity

public String entity()

获取实体值。

Returns:

实体值

startIndex

public int startIndex()

获取 startIndex 值。

Returns:

startIndex 值

type

public String type()

获取类型值。

Returns:

类型值

withAdditionalProperties

public EntityModel withAdditionalProperties(Map additionalProperties)

设置 additionalProperties 值。

Parameters:

additionalProperties - 要设置的 additionalProperties 值

Returns:

EntityModel 对象本身。

withEndIndex

public EntityModel withEndIndex(int endIndex)

设置 endIndex 值。

Parameters:

endIndex - 要设置的 endIndex 值

Returns:

EntityModel 对象本身。

withEntity

public EntityModel withEntity(String entity)

设置实体值。

Parameters:

entity - 要设置的实体值

Returns:

EntityModel 对象本身。

withStartIndex

public EntityModel withStartIndex(int startIndex)

设置 startIndex 值。

Parameters:

startIndex - 要设置的 startIndex 值

Returns:

EntityModel 对象本身。

withType

public EntityModel withType(String type)

设置类型值。

Parameters:

type - 要设置的类型值

Returns:

EntityModel 对象本身。

适用于