Class DatabaseLexicon

java.lang.Object
  |
  +--Lexicon
        |
        +--DatabaseLexicon

public class DatabaseLexicon
extends Lexicon

This class reads the word list file and sticks all the words in a hashtable. Then it spits out a prolog database of all the prolog info used in semantics. Unlike Lexicon, it can be run as main. It deals with morphology and stuff.


Field Summary
 
Fields inherited from class Lexicon
table
 
Constructor Summary
DatabaseLexicon(java.lang.String fileName)
          Create a lexicon by reading in a file.
 
Method Summary
static void main(java.lang.String[] args)
          Run the program.
 
Methods inherited from class Lexicon
getConstituents, readFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseLexicon

public DatabaseLexicon(java.lang.String fileName)
Create a lexicon by reading in a file. See speech/domain/lexicon for notes on format.

Parameters:
fileName - the name of the initial lexicon file.
Throws:
java.lang.RuntimeException - for file errors.
Method Detail

main

public static void main(java.lang.String[] args)
Run the program. Read a series of lex files, then write to a target.

Parameters:
args - lex files, target.