public class FrequencyAnalyzer extends Object implements TermAnalyzerIF
Modifier and Type | Field and Description |
---|---|
protected gnu.trove.map.hash.TObjectDoubleHashMap<String> |
freqs |
Constructor and Description |
---|
FrequencyAnalyzer(File file)
INTERNAL: Loads a frequency table from a file.
|
FrequencyAnalyzer(String filename)
INTERNAL: Loads a frequency table as a resource.
|
Modifier and Type | Method and Description |
---|---|
void |
analyzeTerm(Term term) |
void |
endAnalysis() |
void |
startAnalysis(TermDatabase tdb) |
protected gnu.trove.map.hash.TObjectDoubleHashMap<String> freqs
public FrequencyAnalyzer(String filename)
public FrequencyAnalyzer(File file)
public void analyzeTerm(Term term)
analyzeTerm
in interface TermAnalyzerIF
public void startAnalysis(TermDatabase tdb)
startAnalysis
in interface TermAnalyzerIF
public void endAnalysis()
endAnalysis
in interface TermAnalyzerIF