CYK parser: how does lark work with CYK? #850
-
Has anybody tested the CYK parser? Afaik, the grammar should be in a CNF, like this: S -> AB | BC So that the string 'baaba' should be now parsed well, but I have errors right now. Tried to find some examples on the github or some tests in your code or at least a grammar example and I failed. Could anyone help with that? Maybe I'm missing smth, thank is advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
Well, you probably don't want to use cyk in lark. It is more there for backwards compatibility. But anyway, how are you calling Lark? what errors do you get? You at least need to change the syntax to the lark syntax. |
Beta Was this translation helpful? Give feedback.
Well, you probably don't want to use cyk in lark. It is more there for backwards compatibility.
But anyway, how are you calling Lark? what errors do you get? You at least need to change the syntax to the lark syntax.