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
|
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 trimpublic void trim(java.lang.String output_file)
output_file
- the string filename to write the trimmed dictionary topublic static void main(java.lang.String[] args)
args
- array of string command line argumentsargs[0]
the minimum normalized inverse document frequency (IDF) to use for this trimmed
dictionaryargs[1]
the maximum normalized inverse document frequency (IDF) to use for this trimmed
dictionaryargs[2]
the filename containing the dictionary to trimargs[3]
the optional filename to write the trimmed dictionary to