Package smile.nlp.relevance
Class Relevance
java.lang.Object
smile.nlp.relevance.Relevance
- All Implemented Interfaces:
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 Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
text
The document to rank. -
score
public final double scoreThe relevance score.
-
-
Constructor Details
-
Relevance
Constructor.- Parameters:
text
- the document to rank.score
- the relevance score.
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Relevance>
-