You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formal languages and automata group assignment. Given a grammar description, transforms it into Chomsky normal form and creates a CYK parser from it. Then, given a word in the language, generates all its possible parse trees.
Providing grammar and single input with spaces (use quote marks):
$ python main.py grammars/grammar_name.txt "this is a sentence"
Providing just grammar, with inputs provided in the program:
$ python main.py grammars/grammar_name.txt
Running the program without command-line arguments, providing grammar and input within the program:
$ python main.py
About
Formal languages and automata group assignment. Given a grammar description, transforms it into Chomsky normal form and creates a CYK parser from it. Then, given a word in the language, generates all its possible parse trees.