BLLIP / bllip-parser

BLLIP reranking parser (also known as Charniak-Johnson parser, Charniak parser, Brown reranking parser) See http://pypi.python.org/pypi/bllipparser/ for Python module.
http://bllip.cs.brown.edu/
227 stars 53 forks source link

basic usage of bllip-parser #24

Closed echozheng closed 9 years ago

echozheng commented 9 years ago

Hello, I am new here. First time to use this parser, it a really cool software. while it is still be a stranger to me now. I do need some help, many thanks.

First: If you want to make it slightly easier for humans to read, use the command line argument -P (pretty print),

I try "./parse.sh -P ", but it didn't work. What is the correct command?

Second: if I want the "stdout" to be stored in the .txt file, what should I do?

Thanks for you time!

dmcc commented 9 years ago
  1. Unfortunately, the -P flag only works with the parser (parseIt) not the parser+reranker (which is what parse.sh calls). To pretty print the output of the reranking parser, you may want to try using the Python module instead of the command line scripts (if you know Python).
  2. Do you mean you want the output from parse.sh to be in some text file? In that case, run parse.sh input-sentences.txt > output-parses.txt.
echozheng commented 9 years ago

Thanks very much, that is really help.