public class CfIdf extends Idf
termCount, termList
Constructor and Description |
---|
CfIdf()
Create a new instance of CfIdf.
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<java.lang.String,java.lang.Float> |
calcCFIDF(java.util.ArrayList<BagOfWords> bowList)
Create the term frequency times the inverse term document frequency for
the selected documents.
|
createBoW, createBoW, getTermCount, sortTermOrder, sortTopTermOrder
public java.util.HashMap<java.lang.String,java.lang.Float> calcCFIDF(java.util.ArrayList<BagOfWords> bowList) throws java.lang.Exception
bowList
- list of bag or words to process.java.lang.Exception
- any error.