|
Fido Alpha 3.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--fido.db.WordSense
A word sense is a way a word can be used. A word may have multiple word senses. A word sense can be multiple parts of speech. For example:
ObjectTable,
Serialized Form| Constructor Summary | |
WordSense(BooleanTree grammarTree,
java.lang.String grammarString,
int object)
Constructs a new WordSense with the GrammarString grammarString and the pointer to an object in the ObjectTable object. |
|
| Method Summary | |
void |
addMorphologyTags(java.util.Collection tags)
Adds a MorphologyTag to this WordSense. |
boolean |
containsTag(java.lang.String tag)
Looks for a given morphology tag in this Word Sense. |
java.lang.String |
getGrammarString()
Returns the grammar string for this word sense. |
BooleanTree |
getGrammarTree()
Returns the grammar tree for this word sense. |
int |
getRepresentedObject()
Returns the name of the name of the object in the ObjectTable for this word sense represents. |
java.lang.String |
getRootForm()
Returns the root form of the word. |
void |
setRootForm(java.lang.String str)
Sets the root form of the word. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WordSense(BooleanTree grammarTree,
java.lang.String grammarString,
int object)
grammarString - String containing the grammar stringgrammarTree - BooleanTree representing the grammar stringobject - Id of the object in the ObjectList
GrammarParseException - thrown if the grammarString cannot
be parsedGrammar.insertWord(fido.linguistic.WordPackage)| Method Detail |
public BooleanTree getGrammarTree()
public java.lang.String getGrammarString()
public int getRepresentedObject()
public void addMorphologyTags(java.util.Collection tags)
tags - Collection of MorphologyTags used to get the root
form of the wordLanguageMorphologyTablepublic boolean containsTag(java.lang.String tag)
public void setRootForm(java.lang.String str)
str - Root form of the wordpublic java.lang.String getRootForm()
|
Fido Alpha 3.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||