Class EntityLabel


  • public class EntityLabel
    extends Object
    Defines the entity type and position of the extracted entity within the example.
    • Constructor Detail

      • EntityLabel

        public EntityLabel()
    • Method Detail

      • entityName

        public String entityName()
        Get the entityName value.
        Returns:
        the entityName value
      • withEntityName

        public EntityLabel withEntityName​(String entityName)
        Set the entityName value.
        Parameters:
        entityName - the entityName value to set
        Returns:
        the EntityLabel object itself.
      • startTokenIndex

        public int startTokenIndex()
        Get the startTokenIndex value.
        Returns:
        the startTokenIndex value
      • withStartTokenIndex

        public EntityLabel withStartTokenIndex​(int startTokenIndex)
        Set the startTokenIndex value.
        Parameters:
        startTokenIndex - the startTokenIndex value to set
        Returns:
        the EntityLabel object itself.
      • endTokenIndex

        public int endTokenIndex()
        Get the endTokenIndex value.
        Returns:
        the endTokenIndex value
      • withEndTokenIndex

        public EntityLabel withEndTokenIndex​(int endTokenIndex)
        Set the endTokenIndex value.
        Parameters:
        endTokenIndex - the endTokenIndex value to set
        Returns:
        the EntityLabel object itself.
      • role

        public String role()
        Get the role value.
        Returns:
        the role value
      • withRole

        public EntityLabel withRole​(String role)
        Set the role value.
        Parameters:
        role - the role value to set
        Returns:
        the EntityLabel object itself.
      • roleId

        public UUID roleId()
        Get the roleId value.
        Returns:
        the roleId value
      • withRoleId

        public EntityLabel withRoleId​(UUID roleId)
        Set the roleId value.
        Parameters:
        roleId - the roleId value to set
        Returns:
        the EntityLabel object itself.
      • children

        public List<EntityLabel> children()
        Get the children value.
        Returns:
        the children value
      • withChildren

        public EntityLabel withChildren​(List<EntityLabel> children)
        Set the children value.
        Parameters:
        children - the children value to set
        Returns:
        the EntityLabel object itself.