public static class Synset.WordBuilder extends Object implements Synset.IWordBuilder
| Modifier and Type | Field and Description |
|---|---|
protected int |
lexID |
| Constructor and Description |
|---|
WordBuilder(int num,
String lemma,
int lexID,
AdjMarker marker)
Constructs a new word builder object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRelatedWord(IPointer type,
IWordID id)
Adds a pointer from this word to another word with the specified id.
|
void |
addVerbFrame(IVerbFrame frame)
Adds the specified verb frame to this word.
|
IWord |
toWord(ISynset synset)
Creates the word represented by this builder.
|
public WordBuilder(int num,
String lemma,
int lexID,
AdjMarker marker)
num - the word numberlemma - the lemmalexID - the id of the lexical file in which the word is listedmarker - the adjective marker for the wordpublic void addRelatedWord(IPointer type, IWordID id)
Synset.IWordBuilderaddRelatedWord in interface Synset.IWordBuildertype - the pointer type, may not be nullid - the word id, may not be nullpublic void addVerbFrame(IVerbFrame frame)
Synset.IWordBuilderaddVerbFrame in interface Synset.IWordBuilderframe - the frame to be added, may not be nullpublic IWord toWord(ISynset synset)
Synset.IWordBuildertoWord in interface Synset.IWordBuildersynset - the synset to which this word should be attachedCopyright © 2018. All rights reserved.