Class EntityPrediction


  • public class EntityPrediction
    extends Object
    A suggested entity.
    • Constructor Detail

      • EntityPrediction

        public EntityPrediction()
    • Method Detail

      • entityName

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

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

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

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

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

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

        public String phrase()
        Get the phrase value.
        Returns:
        the phrase value
      • withPhrase

        public EntityPrediction withPhrase​(String phrase)
        Set the phrase value.
        Parameters:
        phrase - the phrase value to set
        Returns:
        the EntityPrediction object itself.
      • children

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

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