public class Lexicon extends Object
Constructor and Description |
---|
Lexicon()
Creates an empty lexicon.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntries(Collection<LexiconEntry> entries)
Adds a collection of lexicon entries to this lexicon.
|
void |
addEntry(LexiconEntry entry)
Adds a lexicon entry to this lexicon.
|
List<LexiconEntry> |
getEntries()
Returns a list of all lexicon entries that are contained in this lexicon.
|
void |
removeAllEntries()
Removes all entries from this lexicon.
|
void |
removeEntry(LexiconEntry entry)
Removes the lexicon entry from this lexicon.
|
String |
toList()
Returns the lexicon as a serialized Prolog list.
|
String |
toString()
Returns this lexicon as a contents of an APE lexicon file, i.e.
|
public void addEntry(LexiconEntry entry)
entry
- The lexicon entry to be added.public void addEntries(Collection<LexiconEntry> entries)
entries
- The lexicon entries to be added.public void removeEntry(LexiconEntry entry)
entry
- The lexicon entry to be removed.public void removeAllEntries()
public List<LexiconEntry> getEntries()
public String toList()
Copyright © 2013. All Rights Reserved.