public class MemoryLexicon extends MapLexicon implements Serializable
MapLexicon.Id2EntryIndexLookup, MapLexicon.IdIsIndex
keyFactory, map, modificationLock
Constructor and Description |
---|
MemoryLexicon()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
gnu.trove.TIntObjectHashMap<ArrayList<Map.Entry<String,LexiconEntry>>> |
getTopTermBins(int binsize,
int minDf) |
Iterator<Map.Entry<String,LexiconEntry>> |
iterator()
Lexicon iterator.
|
int |
term(String term,
EntryStatistics es)
Add new term, or update existing term.
|
int |
term(String term,
EntryStatistics es,
int termid) |
int |
trimLexicon(int cutoff) |
close, getIthLexiconEntry, getLexiconEntry, getLexiconEntry, getLexiconEntryRange, numberOfEntries, setTermIdLookup
public int term(String term, EntryStatistics es)
public int term(String term, EntryStatistics es, int termid)
public int trimLexicon(int cutoff)
public gnu.trove.TIntObjectHashMap<ArrayList<Map.Entry<String,LexiconEntry>>> getTopTermBins(int binsize, int minDf)
public Iterator<Map.Entry<String,LexiconEntry>> iterator()
iterator
in interface Iterable<Map.Entry<String,LexiconEntry>>
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow