* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-New in the August 2006 parser release.
-parseIt is now multi-threaded. The top level README file gives enough
-information to use it. See below for some details. Just in case
-people have problems with it, the non-treaded version is available
-as oparseIt. Assuming no problems the old version will go away
The parser (which is to be found in the sub-directory PARSE)expects
sentences delimited by <s> ...</s>, and outputs the parsed versions in
of a file, from that file. So in the latter case the call to
-parseIt <path to directory with parsing statistics> <file of sentences>
+parseIt <path to directory with parsing statistics> <file of sentences>
-parseIt ../DATA/EN/ testSentence
+parseIt ../DATA/EN/ testSentence
(Note that as the parser now has three separate DATA files, one each
for English, Chinese, and English Language Modeling, the DATA directories
have been made separate subdirectories under the directory DATA).
handing it pretokenized input, as you would do if you were
testing it's performance on the tree-bank), give it a -K option.
-The program was created from this file by make parseIt
This version of the parser can produce multiple-best parses. So if
you what 50 alternative parses rather than just one, just add -N50
... </s>, then the sentence-id proveded will be used instead. This is
useful if, e.g., you want to know where article boundaries are.
-S tells the parser to remain silent when it cannot parse a sentence
(it just goes on to the next one.
-The parser can now parse C
HINESE. It requires that the Chinese
+The parser can now parse C. It requires that the Chinese
characters already be grouped into words. Assuming you have
trained on the Chinese Tree-bank from LDC (see the README for
the TRAIN programs), you tell the parser to be expecting Chinese
where # is a number > 10. As the numbers get larger, the verbosity of
the information increases.
There is a subdirectory TRAIN which contains the programs used to
collect the statistics the parser requires from tree-bank data. As
different) tree-bank data. For more information see the README file
To use the parser as the language model described in Charniak 2001
(Proceedings of ACL) you must first retrain the data using the
pruning that keeps memory in bounds for 50-best parsing fails. So
just use 1-best, or maybe 10 best.
The defaulty speed/accuracy setting should give you the results in the
published papers. It is, however, easy to get faster parsing at the
sentences/second you will get better than 6 sentences/second. (The
VIII Multi-threaded version
+ Multi-threaded version
parseIt is multi threaded. It currently assumes two threads (for dual
processors). To change this, use the command line argument, -t4 to
-evalTree <path to directory with parsing statistics>
evalTree takes penn-treebank parse trees from cin, and outputs to cout
for each tree, one per line.
+shell> evalTree <path to directory with parsing statistics>
If the tree is assigned zero probability it returns 0 for the log2
when it is doing this, give evalTree a -W command-line argument and
the output will have an "!" at the end of the line.
+10. Parsing from tagged input
+This can now be done using a command such as the following:
+shell> parseIt -K -Einput.tags <model dir/> input.sgml
+and input.sgml looks like this:
+<s> This is a test sentence . </s>
+and input.tags looks like this:
+Each token is given a list of zero or more tags and sentences are separated by "---". If a token is given zero tags, the standard tagging mechanism will be employed. If a token is given multiple tags, they will each be considered.
+Note that the tokenization must match exactly between these files (tokens are space-separated in input.sgml). To ensure that tokenization matches, you should pretokenize your input and supply the -K flag.
+11. Frequently confusing errors
+a. Parser prints something like the following:
+ Can't open terms file ../DATA/ENterms.txt
+ parseIt: headFinder.C:39: void readHeadInfoEn(std::string&): Assertion `headStrm' failed.
+This error means that you forgot to add a / after the model directory (e.g. DATA/EN instead of DATA/EN/).
+b. If parser provides no output at all
+This is most likely caused by not having spaces around the <s> and </s> brackets, i.e.
+ <s>This is a test sentence.</s>
+ <s> This is a test sentence. </s>