linux/unices:
java -Xmx512M -classpath <path>/lib/grammarbrowser.jar:<path>/lib/stanford-parser.jar grammarbrowser.browser.Browser [parameters]
java -classpath <path>/lib/grammarbrowser.jar:<path>/lib/stanford-parser.jar grammarbrowser.editor.Editor
windows:
java -Xmx512M -classpath <path>\lib/grammarbrowser.jar;<path>\lib/stanford-parser.jar grammarbrowser.browser.Browser [parameters]
java -classpath <path>\lib/grammarbrowser.jar;<path>\lib/stanford-parser.jar grammarbrowser.editor.Editor
Note the -Xmx512M parameter sets the JVM memory heap to 512 mega bytes, which may suffice or not depending on analyzed data. It may also stretch the memory requirements too much on some hosts.
Command line parameters
grammar=[path/to/serialized/grammar/file]
relations=[path/to/relations/file]
filter=[path/to/relations/filter/file]
doc=[path/to/text/doc]
laf=[com.incors.plaf.kunststoff.KunststoffLookAndFeel|com.jgoodies.looks.plastic.PlasticLookAndFeel|com.jgoodies.looks.windows.WindowsLookAndFeel|com.sun.java.swing.plaf.windows.WindowsLookAndFeel]
theme=[true|false]
Links
Diff
Some of the Stanford 1.6.1 distribution classes had to be patched (the patched file are to be found in the grammarbrowser.jar, please note the classpath order on the command line is relevant for the patched classes to override the standard ones):
-
edu/stanford/nlp/trees/GrammaticalRelation.java
- split into barebones ProtoGrammaticalRelation for core functionality and GrammaticalRelation (which is implemented as inheriting from ProtoGrammaticalRelation)
License
Revision date