public class PrincetonWN30DatabaseDictionaryElementFactory extends AbstractPrincetonDatabaseDictionaryElementFactory
| Constructor and Description |
|---|
PrincetonWN30DatabaseDictionaryElementFactory()
Initialize the factory.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
create(Map params)
Creates a blank factory, takes no parameters.
|
Synset |
createSynset(POS pos,
long offset,
ResultSet synset,
ResultSet words,
ResultSet pointers,
ResultSet verbFrames)
Create a synset.
|
protected Word |
createWord(Synset synset,
int index,
String lemma,
String senseKey,
int usageCnt)
Creates a word object from.
|
createExc, createIndexWord, createWordpublic PrincetonWN30DatabaseDictionaryElementFactory()
public Object create(Map params) throws JWNLException
JWNLExceptionpublic Synset createSynset(POS pos, long offset, ResultSet synset, ResultSet words, ResultSet pointers, ResultSet verbFrames) throws SQLException
createSynset in interface DatabaseDictionaryElementFactorycreateSynset in class AbstractPrincetonDatabaseDictionaryElementFactorypos - - the part of speechoffset - - the file offsetsynset - - the result setwords - - the words composing the synsetpointers - - the pointersverbFrames - - the verbFramesSQLExceptionprotected Word createWord(Synset synset, int index, String lemma, String senseKey, int usageCnt)
synset - - the synset this word belongs toindex - - the index of this wordlemma - - phrase defintionsenseKey - - the sense keyusageCnt - - the tagged usage countCopyright © 2019. All rights reserved.