Class Relevance

java.lang.Object
smile.nlp.relevance.Relevance
All Implemented Interfaces:
Comparable<Relevance>

public class Relevance extends Object implements Comparable<Relevance>
In the context of information retrieval, relevance denotes how well a retrieved set of documents meets the information need of the user.
  • Field Details

    • text

      public final Text text
      The document to rank.
    • score

      public final double score
      The relevance score.
  • Constructor Details

    • Relevance

      public Relevance(Text text, double score)
      Constructor.
      Parameters:
      text - the document to rank.
      score - the relevance score.
  • Method Details