In grammar.py, read_rules takes each line in the grammar file and populates the instance variables rhs_to_rules, lhs_to_rules, and start symbol. Using parse_rule, it separates the lhs, rhs, and ...
The probabilistic CKY parsing algorithm was implemented based on materials in section 13.2 of Speech and Languange Processing (3rd edition draft) by Daniel Jurafsky and James Martin. This project was ...
Abstract: Low-latency solutions for syntactic parsing are needed if parsing is to become an integral part of user-facing natural language applications. Unfortunately, most state-of-the-art ...