|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.ontology.wordnet.WordNetSynsetWriter
public class WordNetSynsetWriter
A SynsetWriter
that generates data lines in the form expected defined
by the original WordNet library.
Field Summary | |
---|---|
String |
offsetFormat
The string formatused to print out an offset. |
int |
offsetSize
The number of bytes needed to represent each known synset offset. |
Constructor Summary | |
---|---|
WordNetSynsetWriter(int offsetSize)
Creates a new WordNetSynsetWriter . |
Method Summary | |
---|---|
String |
serializeSynset(Synset synset)
Returns a string form of this Synset formatted in the WordNet
data.pos file format. |
List<String> |
serializeSynsetKeys(Synset synset)
Returns a List of each sense key linked to it's Synset 's
serialziation id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int offsetSize
public String offsetFormat
Constructor Detail |
---|
public WordNetSynsetWriter(int offsetSize)
WordNetSynsetWriter
.
Method Detail |
---|
public List<String> serializeSynsetKeys(Synset synset)
List
of each sense key linked to it's Synset
's
serialziation id..
serializeSynsetKeys
in interface SynsetWriter
public String serializeSynset(Synset synset)
Synset
formatted in the WordNet
data.pos file format. This method should only be called if an offset
value has been set for the Synset
and an offset size has been
set.
serializeSynset
in interface SynsetWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |