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, createWord
public PrincetonWN30DatabaseDictionaryElementFactory()
public Object create(Map params) throws JWNLException
JWNLException
public Synset createSynset(POS pos, long offset, ResultSet synset, ResultSet words, ResultSet pointers, ResultSet verbFrames) throws SQLException
createSynset
in interface DatabaseDictionaryElementFactory
createSynset
in class AbstractPrincetonDatabaseDictionaryElementFactory
pos
- - the part of speechoffset
- - the file offsetsynset
- - the result setwords
- - the words composing the synsetpointers
- - the pointersverbFrames
- - the verbFramesSQLException
protected 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 © 2018. All rights reserved.