public class Lexicon extends java.util.HashMap<java.lang.String,java.util.ArrayList<LexWord>>
| Constructor and Description |
|---|
Lexicon() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEntry(java.lang.String category,
java.lang.String word,
float prob) |
void |
addLexWords(Lexicon l)
Add words to an lexicon from an existing lexicon.
|
boolean |
addLexWords(java.lang.String... vargs) |
java.util.ArrayList<Rule> |
getAllTerminalRules() |
java.util.ArrayList<Rule> |
getTerminalRules(java.lang.String partOfSpeech) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic java.util.ArrayList<Rule> getTerminalRules(java.lang.String partOfSpeech)
public java.util.ArrayList<Rule> getAllTerminalRules()
public boolean addEntry(java.lang.String category,
java.lang.String word,
float prob)
public boolean addLexWords(java.lang.String... vargs)
public void addLexWords(Lexicon l)
l -