public class HighFrequencyDictionary extends java.lang.Object implements Dictionary
Modifier and Type | Class and Description |
---|---|
(package private) class |
HighFrequencyDictionary.HighFrequencyIterator |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
field |
private IndexReader |
reader |
private float |
thresh |
Constructor and Description |
---|
HighFrequencyDictionary(IndexReader reader,
java.lang.String field,
float thresh)
Creates a new Dictionary, pulling source terms from
the specified
field in the provided reader . |
Modifier and Type | Method and Description |
---|---|
InputIterator |
getEntryIterator()
Returns an iterator over all the entries
|
private IndexReader reader
private java.lang.String field
private float thresh
public HighFrequencyDictionary(IndexReader reader, java.lang.String field, float thresh)
field
in the provided reader
.
Terms appearing in less than thresh
percentage of documents
will be excluded.
public final InputIterator getEntryIterator() throws java.io.IOException
Dictionary
getEntryIterator
in interface Dictionary
java.io.IOException