Class IntentNode

  • All Implemented Interfaces:
    java.lang.Comparable<Node>

    public class IntentNode
    extends ParentNode<SourceNode>
    An intent in an intent model tree. The intent node score is the probability of this intent given the parent interpretation.
    Author:
    bratseth
    • Constructor Detail

      • IntentNode

        public IntentNode​(Intent intent,
                          double probabilityScore)
    • Method Detail

      • getIntent

        public Intent getIntent()
        Returns the intent of this node, this is never null
      • setIntent

        public void setIntent​(Intent intent)
      • toString

        public java.lang.String toString()
        Returns intent:probability
        Overrides:
        toString in class java.lang.Object