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 |
---|---|
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 Iterator<Map.Entry<String,LexiconEntry>> iterator()
iterator
in interface Iterable<Map.Entry<String,LexiconEntry>>
Terrier 4.0. Copyright © 2004-2014 University of Glasgow