net.didion.jwnl.princeton.data
Class AbstractPrincetonFileDictionaryElementFactory
java.lang.Object
net.didion.jwnl.princeton.data.AbstractPrincetonFileDictionaryElementFactory
- All Implemented Interfaces:
- Createable, FileDictionaryElementFactory
- Direct Known Subclasses:
- PrincetonWN16FileDictionaryElementFactory, PrincetonWN17FileDictionaryElementFactory
- 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPrincetonFileDictionaryElementFactory
protected AbstractPrincetonFileDictionaryElementFactory()
createIndexWord
public IndexWord createIndexWord(POS pos,
java.lang.String line)
- Description copied from interface:
FileDictionaryElementFactory
- Create an IndexWord from a line in an index file.
- Specified by:
createIndexWord in interface FileDictionaryElementFactory
createSynset
public Synset createSynset(POS pos,
java.lang.String line)
- Description copied from interface:
FileDictionaryElementFactory
- Create a Synset from a line in a data file
- Specified by:
createSynset in interface FileDictionaryElementFactory
createWord
protected Word createWord(Synset synset,
int index,
java.lang.String lemma)
createExc
public Exc createExc(POS pos,
java.lang.String line)
- Description copied from interface:
FileDictionaryElementFactory
- Create an Exc from a line in an exception file.
- Specified by:
createExc in interface FileDictionaryElementFactory
JWNL homepage.