Delen via


EntityModel Class

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

public class EntityModel

An entity extracted from the utterance.

Method Summary

Modifier and Type Method and Description
Map<String, Object> additionalProperties()

Get the additionalProperties value.

int endIndex()

Get the endIndex value.

String entity()

Get the entity value.

int startIndex()

Get the startIndex value.

String type()

Get the type value.

EntityModel withAdditionalProperties(Map<String, Object> additionalProperties)

Set the additionalProperties value.

EntityModel withEndIndex(int endIndex)

Set the endIndex value.

EntityModel withEntity(String entity)

Set the entity value.

EntityModel withStartIndex(int startIndex)

Set the startIndex value.

EntityModel withType(String type)

Set the type value.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties value.

Returns:

the additionalProperties value

endIndex

public int endIndex()

Get the endIndex value.

Returns:

the endIndex value

entity

public String entity()

Get the entity value.

Returns:

the entity value

startIndex

public int startIndex()

Get the startIndex value.

Returns:

the startIndex value

type

public String type()

Get the type value.

Returns:

the type value

withAdditionalProperties

public EntityModel withAdditionalProperties(Map additionalProperties)

Set the additionalProperties value.

Parameters:

additionalProperties - the additionalProperties value to set

Returns:

the EntityModel object itself.

withEndIndex

public EntityModel withEndIndex(int endIndex)

Set the endIndex value.

Parameters:

endIndex - the endIndex value to set

Returns:

the EntityModel object itself.

withEntity

public EntityModel withEntity(String entity)

Set the entity value.

Parameters:

entity - the entity value to set

Returns:

the EntityModel object itself.

withStartIndex

public EntityModel withStartIndex(int startIndex)

Set the startIndex value.

Parameters:

startIndex - the startIndex value to set

Returns:

the EntityModel object itself.

withType

public EntityModel withType(String type)

Set the type value.

Parameters:

type - the type value to set

Returns:

the EntityModel object itself.

Applies to