|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.didion.jwnl.princeton.data.AbstractPrincetonDatabaseDictionaryElementFactory
net.didion.jwnl.princeton.data.PrincetonWN30DatabaseDictionaryElementFactory
public class PrincetonWN30DatabaseDictionaryElementFactory
Supports the wordnet 3.0 database, including sense key and usage count information.
| Constructor Summary | |
|---|---|
PrincetonWN30DatabaseDictionaryElementFactory()
Initialize the factory. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.didion.jwnl.princeton.data.AbstractPrincetonDatabaseDictionaryElementFactory |
|---|
createExc, createIndexWord, createWord |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrincetonWN30DatabaseDictionaryElementFactory()
| Method Detail |
|---|
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 DatabaseDictionaryElementFactorycreateSynset in class AbstractPrincetonDatabaseDictionaryElementFactorypos - - the part of speechoffset - - the file offsetsynset - - the result setwords - - the words composing the synsetpointers - - the pointersverbFrames - - the verbFrames
SQLException
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 count
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||