story.scheherazade.prologuer
Class Prologuer
java.lang.Object
story.scheherazade.prologuer.Prologuer
public class Prologuer
- extends java.lang.Object
Progloguer is a program that generates source code for Scheherazade
to use at compile time. It allows the Sch. binary to set up a
portion of the WordNet database at runtime without reading any
external file, whether WordNet's database itself or some digested version.
Usage: java Prologuer [usage-model]
WNdb is the WordNet database directory, found in any standard WordNet install.
Prologuer was developed and tested against WordNet 3.0.
usage-model is an optional argument which points to a file that is formatted
with one word per line, with Penn Treebank POS annotation in the format
supplied by MXPOST. Example
tree_NN
bush_NN
If this file is provided, only the words/senses present in the
model will be imported from WordNet.
Constructor Summary |
Prologuer(java.lang.String wnDir,
java.lang.String comlex,
java.lang.String verbocean,
java.lang.String ontonotesFrameDirString,
java.lang.String verbNetDirString,
java.lang.String usageModelFilename,
java.lang.String outfile)
|
Method Summary |
static void |
main(java.lang.String[] args)
Main function. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEST_MODE
public static final boolean TEST_MODE
- See Also:
- Constant Field Values
Prologuer
public Prologuer(java.lang.String wnDir,
java.lang.String comlex,
java.lang.String verbocean,
java.lang.String ontonotesFrameDirString,
java.lang.String verbNetDirString,
java.lang.String usageModelFilename,
java.lang.String outfile)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
- Main function. This is actually run during Scheherazade build!
Usage: java Prologuer [usage-model]
WNdb: WordNet "dict" file, tested on WN 3.0
COMLEX: The "comlex_synt_1.1.1" file of COMLEX 1.1.1
Ontonotes-Frames: The "frames" directory of Ontonotes 2.0, aka PropBank
VerbNet: The VerbNet 2.1 directory
out-file: The name of the file to which we should write our generated code;
must be called ExternalKB.java (since the generated code is of a class
called ExternalKB)
usage-model: TODO: An model of word usage, e.g., Aesop corpus or Brown,
for pruning WordNet into a subset thereof that is actually used
Copyright © 2011 David K. Elson. All Rights Reserved.