(python) parsing natural language using CKY CFG