wavii/pfp — Issue #6: Long sentences throw Aliens error "game over, man!"
Author: leondz
Created: 2011-11-17 22:22:43+00:00
State: open

Although one can specify a token limit, the parser sometimes runs into problems with longer sentences:

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pfp
>>> pfp.Parser(200).parse('The report is consistent of two parts in scrutiny level, with one part analysing from the point of view by our survey and views from the user (survey launched marked Heading 2), and with another part analysing from perspective by technical aspect through Achieving Excellence Design Evaluation Toolkit (AEDET Evolution) which is a tool for evaluating the quality of design in healthcare buildings and A Staff and Patient Calibration Toolkit (ASPECT) which is a tool for evaluating the staff and patient environment in healthcare buildings (Heading 3).')
Traceback (most recent call last):
File "", line 1, in
RuntimeError: game over, man!