public class TrimDictionary
extends java.lang.Object
Constructor and Description |
---|
TrimDictionary(double min_idf,
double max_idf,
java.lang.String dictionary_file)
Constructor that specifies the IDF range and dictionary to trim
|
Modifier and Type | Method and Description |
---|---|
void |
trim(java.lang.String output_file)
Trims the dictionary and saves it to the given output file
|
public TrimDictionary(double min_idf, double max_idf, java.lang.String dictionary_file)
min_idf
- the double
minimum normalized inverse document frequency (IDF) to use for this trimmed
dictionarymax_idf
- the double
maximum normalized inverse document frequency (IDF) to use for this trimmed
dictionarydictionary_file
- the string filename containing the dictionary to trim