From 8ec7ecacca10047b7607f871cd56a8c46a41ba18 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Fri, 14 Dec 2012 16:00:52 +0000 Subject: a bit more flexible API for parsing in Python --- src/runtime/python/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/python/test.py') diff --git a/src/runtime/python/test.py b/src/runtime/python/test.py index ae0427d60..437c29776 100644 --- a/src/runtime/python/test.py +++ b/src/runtime/python/test.py @@ -19,7 +19,7 @@ while True: break; try: - for (p,e) in gr.languages["ParseEng"].parse(gr.startCat,line): + for (p,e) in gr.languages["ParseEng"].parse(line, n=5): sys.stdout.write("["+str(p)+"] "+str(e)+"\n") print gr.languages["ParseEngBul"].linearize(e) except pgf.ParseError as e: -- cgit v1.2.3