public class TfIdf extends Object
Constructor and Description |
---|
TfIdf(String term,
int tf,
int df,
double tfIdf)
Creates the TF-IDF object.
|
Modifier and Type | Method and Description |
---|---|
int |
getDf()
Returns the document frequency (the number of documents the term occurs in).
|
String |
getTerm()
Returns the indexed term.
|
int |
getTf()
Returns term frequency (the number of times the term occurs in the field).
|
double |
getTfIdf()
Returns the TF-IDF number read from Apache Solr.
|
String |
toString()
Returns a string representation of the object.
|
public TfIdf(String term, int tf, int df, double tfIdf)
term
- The indexed termtf
- Term frequency (the number of times the term occurs in the field).df
- Document frequency (the number of documents the term occurs in).tfIdf
- The TF-IDF number read from Apache Solr.public String getTerm()
public int getTf()
public int getDf()
public double getTfIdf()
Copyright © 2020. All rights reserved.