net.sf.extjwnl.princeton.data
Class AbstractPrincetonFileDictionaryElementFactory
java.lang.Object
net.sf.extjwnl.princeton.data.AbstractPrincetonDictionaryElementFactory
net.sf.extjwnl.princeton.data.AbstractPrincetonFileDictionaryElementFactory
- All Implemented Interfaces:
- FileDictionaryElementFactory, Owned
- Direct Known Subclasses:
- PrincetonWN17FileDictionaryElementFactory
public abstract class AbstractPrincetonFileDictionaryElementFactory
- extends AbstractPrincetonDictionaryElementFactory
- implements FileDictionaryElementFactory
FileDictionaryElementFactory
that parses lines from the dictionary files distributed by the
WordNet team at Princeton's Cognitive Science department.
- Author:
- John Didion , Aliaksandr Autayeu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPrincetonFileDictionaryElementFactory
protected AbstractPrincetonFileDictionaryElementFactory(Dictionary dictionary)
createIndexWord
public IndexWord createIndexWord(POS pos,
String line)
throws JWNLException
- Description copied from interface:
FileDictionaryElementFactory
- Creates an IndexWord from a line in an index file.
- Specified by:
createIndexWord
in interface FileDictionaryElementFactory
- Parameters:
pos
- - the part of speechline
- - unparsed line
- Returns:
- indexword
- Throws:
JWNLException
- JWNLException
createSynset
public Synset createSynset(POS pos,
String line)
throws JWNLException
- Description copied from interface:
FileDictionaryElementFactory
- Creates a synset from a line in a data file.
- Specified by:
createSynset
in interface FileDictionaryElementFactory
- Parameters:
pos
- - the part of speechline
- - unparsed line
- Returns:
- synset
- Throws:
JWNLException
- JWNLException
createExc
public Exc createExc(POS pos,
String line)
throws JWNLException
- Description copied from interface:
FileDictionaryElementFactory
- Create an Exc from a line in an exception file.
- Specified by:
createExc
in interface FileDictionaryElementFactory
- Parameters:
pos
- - the part of speechline
- - unparsed line
- Returns:
- exception
- Throws:
JWNLException
- JWNLException
Copyright © 2011. All Rights Reserved.