RobMcH / CYK-Parser

A CYK parser written in Python 3.
MIT License
37 stars 25 forks source link

grammar conversion #4

Open nzarnaghi opened 3 years ago

nzarnaghi commented 3 years ago

Hi,

I want to use the following grammar which I have previously used in NLTK:

S -> L S | L L -> 'A' F 'U' | 'A' | 'U' F 'A' | 'U' | 'C' F 'G' | 'C' | 'G' F 'C' | 'G' F -> 'A' F 'U' | 'U' F 'A' | 'C' F 'G' | 'G' F 'C' | L S Nothing -> None

But it shows an error for the sequence "ACCCUGGAU" that "The given sequence is not in the language produced by the grammar". How can I solve it?