public abstract class AbstractPrincetonFileDictionaryElementFactory extends 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 | Method and Description |
---|---|
Exc |
createExc(POS pos,
String line)
Create an Exc from a line in an exception file.
|
IndexWord |
createIndexWord(POS pos,
String line)
Creates an IndexWord from a line in an index file.
|
Synset |
createSynset(POS pos,
String line)
Creates a synset from a line in a data file.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public IndexWord createIndexWord(POS pos, String line)
FileDictionaryElementFactory
createIndexWord
in interface FileDictionaryElementFactory
pos
- - the part of speechline
- - unparsed linepublic Synset createSynset(POS pos, String line)
FileDictionaryElementFactory
createSynset
in interface FileDictionaryElementFactory
pos
- - the part of speechline
- - unparsed linepublic Exc createExc(POS pos, String line)
FileDictionaryElementFactory
createExc
in interface FileDictionaryElementFactory
pos
- - the part of speechline
- - unparsed line