资 源 简 介
PEN (Parser de Earley do Nuno) is a Java implementation of the well-known Earley"s chart parsing algorithm.
It analyses sentences according to given context-free grammars, written in plain text files.
A simple API is also provided together with the parser, to ease its integration in other projects.
Contents
This package contains the binaries and source code of PEN, a chart parser that implements the Earley algorithm.
It can be used to process sentences according to aby given context-free grammars.
Use
java -jar pen.jar
is a file with a grammar, with the format described in the next item
*
is a file with a sentence per line
Both file arguments are mandatory!
Example:
java -jar pen.jar grammar.txt sentences.txt
Write your own grammars