Package net.didion.jwnl.data
Interface FileDictionaryElementFactory
-
- All Superinterfaces:
Createable
- All Known Implementing Classes:
AbstractPrincetonFileDictionaryElementFactory,PrincetonWN16FileDictionaryElementFactory,PrincetonWN17FileDictionaryElementFactory
public interface FileDictionaryElementFactory extends Createable
Factory class for creatingDictionaryElements (Synsets,ExceptionIndexWords). Using a factory class rather than individual parsing methods in each class facilitates using multiple versions of WordNet, or using a propritary data format.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExccreateExc(POS pos, java.lang.String line)Create an Exc from a line in an exception file.IndexWordcreateIndexWord(POS pos, java.lang.String line)Creates an IndexWord from a line in an index file.SynsetcreateSynset(POS pos, java.lang.String line)Creates a synset from a line in a data file.-
Methods inherited from interface net.didion.jwnl.util.factory.Createable
create
-
-
-
-
Method Detail
-
createExc
Exc createExc(POS pos, java.lang.String line)
Create an Exc from a line in an exception file.- Parameters:
pos- - the part of speechline- - unparsed line- Returns:
- exception
-
createSynset
Synset createSynset(POS pos, java.lang.String line)
Creates a synset from a line in a data file.- Parameters:
pos- - the part of speechline- - unparsed line- Returns:
- synset
-
-