diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2012-12-14 16:00:52 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2012-12-14 16:00:52 +0000 |
| commit | 8ec7ecacca10047b7607f871cd56a8c46a41ba18 (patch) | |
| tree | 387ec1a555bcf549ced77a25a5c85fe28489c5d2 /src/runtime/python/test.py | |
| parent | 20aaa4a9899ce454d3c20594a2b7d2d3d38dbc88 (diff) | |
a bit more flexible API for parsing in Python
Diffstat (limited to 'src/runtime/python/test.py')
| -rw-r--r-- | src/runtime/python/test.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
