net.didion.jwnl.princeton.data
Class PrincetonWN30DatabaseDictionaryElementFactory
java.lang.Object
net.didion.jwnl.princeton.data.AbstractPrincetonDatabaseDictionaryElementFactory
net.didion.jwnl.princeton.data.PrincetonWN30DatabaseDictionaryElementFactory
- All Implemented Interfaces:
- DatabaseDictionaryElementFactory, Createable
public class PrincetonWN30DatabaseDictionaryElementFactory
- extends AbstractPrincetonDatabaseDictionaryElementFactory
Supports the wordnet 3.0 database, including sense key and usage count information.
- Author:
- brett
Method Summary |
java.lang.Object |
create(java.util.Map params)
Creates a blank factory, takes no parameters. |
Synset |
createSynset(POS pos,
long offset,
java.sql.ResultSet synset,
java.sql.ResultSet words,
java.sql.ResultSet pointers,
java.sql.ResultSet verbFrames)
Create a synset. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrincetonWN30DatabaseDictionaryElementFactory
public PrincetonWN30DatabaseDictionaryElementFactory()
- Initialize the factory.
create
public java.lang.Object create(java.util.Map params)
throws JWNLException
- Creates a blank factory, takes no parameters.
- Throws:
JWNLException
createSynset
public Synset createSynset(POS pos,
long offset,
java.sql.ResultSet synset,
java.sql.ResultSet words,
java.sql.ResultSet pointers,
java.sql.ResultSet verbFrames)
throws java.sql.SQLException
- Create a synset.
- Specified by:
createSynset
in interface DatabaseDictionaryElementFactory
- Overrides:
createSynset
in class AbstractPrincetonDatabaseDictionaryElementFactory
- Parameters:
pos
- - the part of speechoffset
- - the file offsetsynset
- - the result setwords
- - the words composing the synsetpointers
- - the pointersverbFrames
- - the verbFrames
- Returns:
- Synset - the created synset
- Throws:
java.sql.SQLException