Class SourceNode

java.lang.Object
com.yahoo.search.intent.model.Node
com.yahoo.search.intent.model.SourceNode
All Implemented Interfaces:
Comparable<Node>

public class SourceNode extends Node
A source node in an intent model tree. Represents a source with an appropriateness score (i.e the score of a source node is called appropriateness). Sources are ordered by decreasing appropriateness.
Author:
bratseth
  • Constructor Details

    • SourceNode

      public SourceNode(Source source, double score)
  • Method Details

    • setSource

      public void setSource(Source source)
      Sets the source of this node
    • getSource

      public Source getSource()
      Returns the source of this node
    • toString

      public String toString()
      Returns source:appropriateness
      Overrides:
      toString in class Object