| Modifier and Type | Method and Description |
|---|---|
double |
rank(Corpus corpus,
TextTerms doc,
java.lang.String[] terms,
int[] tf,
int n)
Returns a relevance score between a set of terms and a document based on a corpus.
|
double |
rank(Corpus corpus,
TextTerms doc,
java.lang.String term,
int tf,
int n)
Returns a relevance score between a term and a document based on a corpus.
|
double rank(Corpus corpus, TextTerms doc, java.lang.String term, int tf, int n)
corpus - the corpus.doc - the document to rank.term - the searching term.tf - the term frequency in the document.n - the number of documents containing the given term in the corpus;double rank(Corpus corpus, TextTerms doc, java.lang.String[] terms, int[] tf, int n)
corpus - the corpus.doc - the document to rank.terms - the searching terms.tf - the term frequencies in the document.n - the number of documents containing the given term in the corpus;