def main(): run(grammar_path='/Users/vitaliyvrublevskiy/projects/Grammar/rules.cfg', s=build_sentence(get_sentence()), debug=False, start_rule='ROOT', lazy=True # lazy=False )
def parse(s): run( grammar_path= '/Users/vitaliyvrublevskiy/projects/Grammar/rules_transitive.cfg', s=build_sentence(s), debug=False, start_rule='ROOT', # lazy=True lazy=False)
def main_artificial(): s = 'a/a<A> b/b<B> b/b<B>' run('/Users/vitaliyvrublevskiy/projects/Grammar/rules_artificial.cfg', s, True, 'ROOT')
def main_nltk_rules(): run('/Users/vitaliyvrublevskiy/projects/Grammar/rules_nltk.cfg', build_sentence(get_sentence()), False, 'S')
def main_mini(): run('/Users/vitaliyvrublevskiy/projects/Grammar/rules_mini.cfg', build_sentence(get_sentence()), False, 'ROOT', True)