public abstract class AbstractPrincetonFileDictionaryElementFactory extends java.lang.Object implements FileDictionaryElementFactory
FileDictionaryElementFactory that parses lines from the dictionary files distributed by the
WordNet team at Princeton's Cognitive Science department.| Modifier and Type | Field and Description |
|---|---|
private static MessageLog |
_log |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPrincetonFileDictionaryElementFactory() |
| Modifier and Type | Method and Description |
|---|---|
Exc |
createExc(POS pos,
java.lang.String line)
Create an Exc from a line in an exception file.
|
IndexWord |
createIndexWord(POS pos,
java.lang.String line)
Creates an IndexWord from a line in an index file.
|
Synset |
createSynset(POS pos,
java.lang.String line)
Creates a synset from a line in a data file.
|
protected Word |
createWord(Synset synset,
int index,
java.lang.String lemma)
Creates a word, also access the sense.idx file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateprivate static final MessageLog _log
protected AbstractPrincetonFileDictionaryElementFactory()
public IndexWord createIndexWord(POS pos, java.lang.String line)
FileDictionaryElementFactorycreateIndexWord in interface FileDictionaryElementFactorypos - - the part of speechline - - unparsed linepublic Synset createSynset(POS pos, java.lang.String line)
FileDictionaryElementFactorycreateSynset in interface FileDictionaryElementFactorypos - - the part of speechline - - unparsed lineprotected Word createWord(Synset synset, int index, java.lang.String lemma)
synset - index - lemma - public Exc createExc(POS pos, java.lang.String line)
FileDictionaryElementFactorycreateExc in interface FileDictionaryElementFactorypos - - the part of speechline - - unparsed line