Berkeley Parser: Introduction
Berkeley Parser is one the best open source syntactic parsers for today. It uses a sofisticated split-merge algorithm to learn a constituent grammar started with a simple x-bar grammar.
The parser itself and a grammar for one of provided languages here from its repository at Google code. For now pretrained grammars are offered for English, German, French, Bulgarian, Arabic and Chinese.
We’ve downloaded the parser archive and the English grammar. Let’s try to produce some meaningful output:
$ echo "The horse raced past the barn fell ." | \
$ java -jar BerkeleyParser-1.7.jar -gr eng_sm6.gr
The resulted analysis is by far not ideal but it is a good beginning: