pyparsers

Parsers for grammpy library


License
GPL-3.0
Install
pip install pyparsers==0.0.3

Documentation

pyparsers Build Status Coverage Status


THIS LIBRARY IS DEPRECATED, USE THE grampy LIBRARY INSTEAD.


Library implements CYK algorithm. It uses grammpy library for grammar specification.

Only exposed method is cyk. It raise NotParsedException if input sequence was syntactically invalid and CYK was unable to parse it.

from pyparsers import cyk

g = Grammar()
# ...

parsed = cyk(g, [*input])

Version: 0.0.3

Author: Patrik Valkovič

Licence: GNU General Public License v3.0