Megosztás a következőn keresztül:


EntityLabel Class

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

public class EntityLabel

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

Method Summary

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

Get the children value.

int endTokenIndex()

Get the endTokenIndex value.

String entityName()

Get the entityName value.

String role()

Get the role value.

UUID roleId()

Get the roleId value.

int startTokenIndex()

Get the startTokenIndex value.

EntityLabel withChildren(List<EntityLabel> children)

Set the children value.

EntityLabel withEndTokenIndex(int endTokenIndex)

Set the endTokenIndex value.

EntityLabel withEntityName(String entityName)

Set the entityName value.

EntityLabel withRole(String role)

Set the role value.

EntityLabel withRoleId(UUID roleId)

Set the roleId value.

EntityLabel withStartTokenIndex(int startTokenIndex)

Set the startTokenIndex value.

Method Details

children

public List children()

Get the children value.

Returns:

the children value

endTokenIndex

public int endTokenIndex()

Get the endTokenIndex value.

Returns:

the endTokenIndex 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

roleId

public UUID roleId()

Get the roleId value.

Returns:

the roleId value

startTokenIndex

public int startTokenIndex()

Get the startTokenIndex value.

Returns:

the startTokenIndex value

withChildren

public EntityLabel withChildren(List children)

Set the children value.

Parameters:

children - the children value to set

Returns:

the EntityLabel object itself.

withEndTokenIndex

public EntityLabel withEndTokenIndex(int endTokenIndex)

Set the endTokenIndex value.

Parameters:

endTokenIndex - the endTokenIndex value to set

Returns:

the EntityLabel object itself.

withEntityName

public EntityLabel withEntityName(String entityName)

Set the entityName value.

Parameters:

entityName - the entityName value to set

Returns:

the EntityLabel object itself.

withRole

public EntityLabel withRole(String role)

Set the role value.

Parameters:

role - the role value to set

Returns:

the EntityLabel object itself.

withRoleId

public EntityLabel withRoleId(UUID roleId)

Set the roleId value.

Parameters:

roleId - the roleId value to set

Returns:

the EntityLabel object itself.

withStartTokenIndex

public EntityLabel withStartTokenIndex(int startTokenIndex)

Set the startTokenIndex value.

Parameters:

startTokenIndex - the startTokenIndex value to set

Returns:

the EntityLabel object itself.

Applies to