def kimmo_chart_parse(sentence, grammar, kimmo): tokens = list(wordpunct(sentence)) demo = ChartDemo(grammar, tokens, initfunc=chart_kimmo(kimmo)) demo.mainloop()
def tagged_chart_parse(sentence, grammar, tagger): tokens = list(wordpunct(sentence)) demo = ChartDemo(grammar, tokens, initfunc=chart_tagger(tagger)) demo.mainloop()