Class Enumerator
java.lang.Object
|
+--Enumerator
- public class Enumerator
- extends java.lang.Object
This class creates an possible parse decks from
a given sentence by enumeration.
Field Summary |
protected DATA |
info
|
protected java.util.Hashtable |
lex_hash
Hash table to lexical items. |
protected java.util.Hashtable |
or_hash
Hash table to objects and relations. |
Constructor Summary |
Enumerator()
Default constructor. |
Enumerator(DATA info)
Constructor that will obtain Lexical and O/R hash tables
from a DATA object. |
Enumerator(java.util.Hashtable lex,
java.util.Hashtable or)
Constructor which is given references to the lexical
and O/R hash tables. |
Method Summary |
java.util.Vector |
process(java.lang.String sentence)
Processes a sentence and create possible decks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lex_hash
protected java.util.Hashtable lex_hash
- Hash table to lexical items.
or_hash
protected java.util.Hashtable or_hash
- Hash table to objects and relations.
info
protected DATA info
Enumerator
public Enumerator()
- Default constructor.
Enumerator
public Enumerator(DATA info)
- Constructor that will obtain Lexical and O/R hash tables
from a DATA object.
- Parameters:
info
- DATA object which contains references to
the lexical and o/r hash tables.
Enumerator
public Enumerator(java.util.Hashtable lex,
java.util.Hashtable or)
- Constructor which is given references to the lexical
and O/R hash tables.
- Parameters:
lex
- Reference to Lexical table.or
- Reference to O/R Table.
process
public java.util.Vector process(java.lang.String sentence)
throws InvalidWordException
- Processes a sentence and create possible decks.
- Parameters:
sentence
- Sentence to enumerate.- Returns:
- Vector of link list of DataEntry(One link list forms one
possible deck. The vector represents all possible decks.)