Fido Alpha 3.2

fido.linguistic
Class WordPackage

java.lang.Object
  |
  +--fido.linguistic.WordPackage

public class WordPackage
extends java.lang.Object

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.

See Also:
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

WordPackage

public WordPackage(java.lang.String str)
Creates a new WordPackage with the surface form of the word from the user input.

Parameters:
str - Surface form of the word for this class.
Method Detail

addWordSense

public void addWordSense(WordSense sense)
Adds a new WordSense to the class.

Parameters:
sense - WordSense to add

getWordSenses

public java.util.Iterator getWordSenses()
Returns an iterator for all of the WordSenses for this word.

Returns:
Iterator of all WordSenses

getSurfaceForm

public java.lang.String getSurfaceForm()
Returns the surface string originally parsed from the user input.

Returns:
Surface form for this word.

Fido Alpha 3.2