|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fido.linguistic.WordPackage
A word package is a small class that holds the original surface form of the word. This is the actual word the user entered in the sentence before any lookup or morphology has been applied. Also, the class contains a Vector of Word Senses that will be filled in by the Word Lookup module.
This class holds the surface form of the word, which is the string from the original user input. If morphology modifies the word to find it in the dictionary, the root form in each word sense will be different. If the word is unmodified, the root form will be the same as the surface form in this class.
WordSense
,
WordLookup
Constructor Summary | |
WordPackage(java.lang.String str)
Creates a new WordPackage with the surface form of the word from the user input. |
Method Summary | |
void |
addWordSense(WordSense sense)
Adds a new WordSense to the class. |
java.lang.String |
getSurfaceForm()
Returns the surface string originally parsed from the user input. |
java.util.Iterator |
getWordSenses()
Returns an iterator for all of the WordSenses for this word. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WordPackage(java.lang.String str)
str
- Surface form of the word for this class.Method Detail |
public void addWordSense(WordSense sense)
sense
- WordSense to addpublic java.util.Iterator getWordSenses()
public java.lang.String getSurfaceForm()
|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |