grampy
LIBRARY INSTEAD.
THIS LIBRARY IS DEPRECATED, USE THE 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