Class InterpretationNode

  • All Implemented Interfaces:
    Comparable<Node>

    public class InterpretationNode
    extends ParentNode<IntentNode>
    An interpretation which may have multiple intents. The score of this node is the probability of the wrapped interpretation.
    Author:
    bratseth
    • Constructor Detail

      • InterpretationNode

        public InterpretationNode​(Interpretation interpretation)
    • Method Detail

      • getInterpretation

        public Interpretation getInterpretation()
        Returns this interpretation. This is never null.
      • setInterpretation

        public void setInterpretation​(Interpretation interpretation)
        Sets this interpretation
      • getScore

        public double getScore()
        Returns the probability of the interpretation of this
        Overrides:
        getScore in class Node
      • setScore

        public void setScore​(double score)
        Sets the probability of the interpretation of this
        Overrides:
        setScore in class Node
      • toString

        public String toString()
        Returns interpretations toString()
        Overrides:
        toString in class Object