EntityLabelObject Class

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

public class EntityLabelObject

Defines the entity type and position of the extracted entity within the example.

Method Summary

Modifier and Type Method and Description
List<EntityLabelObject> children()

Get the children value.

int endCharIndex()

Get the endCharIndex value.

String entityName()

Get the entityName value.

String role()

Get the role value.

int startCharIndex()

Get the startCharIndex value.

EntityLabelObject withChildren(List<EntityLabelObject> children)

Set the children value.

EntityLabelObject withEndCharIndex(int endCharIndex)

Set the endCharIndex value.

EntityLabelObject withEntityName(String entityName)

Set the entityName value.

EntityLabelObject withRole(String role)

Set the role value.

EntityLabelObject withStartCharIndex(int startCharIndex)

Set the startCharIndex value.

Method Details

children

public List children()

Get the children value.

Returns:

the children value

endCharIndex

public int endCharIndex()

Get the endCharIndex value.

Returns:

the endCharIndex value

entityName

public String entityName()

Get the entityName value.

Returns:

the entityName value

role

public String role()

Get the role value.

Returns:

the role value

startCharIndex

public int startCharIndex()

Get the startCharIndex value.

Returns:

the startCharIndex value

withChildren

public EntityLabelObject withChildren(List children)

Set the children value.

Parameters:

children - the children value to set

Returns:

the EntityLabelObject object itself.

withEndCharIndex

public EntityLabelObject withEndCharIndex(int endCharIndex)

Set the endCharIndex value.

Parameters:

endCharIndex - the endCharIndex value to set

Returns:

the EntityLabelObject object itself.

withEntityName

public EntityLabelObject withEntityName(String entityName)

Set the entityName value.

Parameters:

entityName - the entityName value to set

Returns:

the EntityLabelObject object itself.

withRole

public EntityLabelObject withRole(String role)

Set the role value.

Parameters:

role - the role value to set

Returns:

the EntityLabelObject object itself.

withStartCharIndex

public EntityLabelObject withStartCharIndex(int startCharIndex)

Set the startCharIndex value.

Parameters:

startCharIndex - the startCharIndex value to set

Returns:

the EntityLabelObject object itself.

Applies to