Package com.yahoo.search.intent.model
Class InterpretationNode
- java.lang.Object
-
- com.yahoo.search.intent.model.Node
-
- com.yahoo.search.intent.model.ParentNode<IntentNode>
-
- com.yahoo.search.intent.model.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 Summary
Constructors Constructor Description InterpretationNode(Interpretation interpretation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Interpretation
getInterpretation()
Returns this interpretation.double
getScore()
Returns the probability of the interpretation of thisvoid
setInterpretation(Interpretation interpretation)
Sets this interpretationvoid
setScore(double score)
Sets the probability of the interpretation of thisjava.lang.String
toString()
Returns interpretations toString()-
Methods inherited from class com.yahoo.search.intent.model.ParentNode
children
-
Methods inherited from class com.yahoo.search.intent.model.Node
compareTo, equals, hashCode, increaseScore
-
-
-
-
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
-
setScore
public void setScore(double score)
Sets the probability of the interpretation of this
-
toString
public java.lang.String toString()
Returns interpretations toString()- Overrides:
toString
in classjava.lang.Object
-
-