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:
Comparable<Node>
An interpretation which may have multiple intents. The score of this node is the probability of
the wrapped interpretation.
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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 thistoString()
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 Details
-
InterpretationNode
-
-
Method Details
-
getInterpretation
Returns this interpretation. This is never null. -
setInterpretation
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
Returns interpretations toString()
-