Class EntityLabelObject


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

      • EntityLabelObject

        public EntityLabelObject()
    • Method Detail

      • entityName

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

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

        public int startCharIndex()
        Get the startCharIndex value.
        Returns:
        the startCharIndex value
      • withStartCharIndex

        public EntityLabelObject withStartCharIndex​(int startCharIndex)
        Set the startCharIndex value.
        Parameters:
        startCharIndex - the startCharIndex value to set
        Returns:
        the EntityLabelObject object itself.
      • endCharIndex

        public int endCharIndex()
        Get the endCharIndex value.
        Returns:
        the endCharIndex value
      • withEndCharIndex

        public EntityLabelObject withEndCharIndex​(int endCharIndex)
        Set the endCharIndex value.
        Parameters:
        endCharIndex - the endCharIndex value to set
        Returns:
        the EntityLabelObject object itself.
      • role

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

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

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

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