Class InterpretationNode

  • All Implemented Interfaces:
    java.lang.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 java.lang.String toString()
        Returns interpretations toString()
        Overrides:
        toString in class java.lang.Object