Class LabeledUtterance


  • public class LabeledUtterance
    extends Object
    A prediction and label pair of an example.
    • Constructor Detail

      • LabeledUtterance

        public LabeledUtterance()
    • Method Detail

      • id

        public Integer id()
        Get the id value.
        Returns:
        the id value
      • withId

        public LabeledUtterance withId​(Integer id)
        Set the id value.
        Parameters:
        id - the id value to set
        Returns:
        the LabeledUtterance object itself.
      • text

        public String text()
        Get the text value.
        Returns:
        the text value
      • withText

        public LabeledUtterance withText​(String text)
        Set the text value.
        Parameters:
        text - the text value to set
        Returns:
        the LabeledUtterance object itself.
      • tokenizedText

        public List<String> tokenizedText()
        Get the tokenizedText value.
        Returns:
        the tokenizedText value
      • withTokenizedText

        public LabeledUtterance withTokenizedText​(List<String> tokenizedText)
        Set the tokenizedText value.
        Parameters:
        tokenizedText - the tokenizedText value to set
        Returns:
        the LabeledUtterance object itself.
      • intentLabel

        public String intentLabel()
        Get the intentLabel value.
        Returns:
        the intentLabel value
      • withIntentLabel

        public LabeledUtterance withIntentLabel​(String intentLabel)
        Set the intentLabel value.
        Parameters:
        intentLabel - the intentLabel value to set
        Returns:
        the LabeledUtterance object itself.
      • entityLabels

        public List<EntityLabel> entityLabels()
        Get the entityLabels value.
        Returns:
        the entityLabels value
      • withEntityLabels

        public LabeledUtterance withEntityLabels​(List<EntityLabel> entityLabels)
        Set the entityLabels value.
        Parameters:
        entityLabels - the entityLabels value to set
        Returns:
        the LabeledUtterance object itself.
      • intentPredictions

        public List<IntentPrediction> intentPredictions()
        Get the intentPredictions value.
        Returns:
        the intentPredictions value
      • withIntentPredictions

        public LabeledUtterance withIntentPredictions​(List<IntentPrediction> intentPredictions)
        Set the intentPredictions value.
        Parameters:
        intentPredictions - the intentPredictions value to set
        Returns:
        the LabeledUtterance object itself.
      • entityPredictions

        public List<EntityPrediction> entityPredictions()
        Get the entityPredictions value.
        Returns:
        the entityPredictions value
      • withEntityPredictions

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