Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

Long sentences throw Aliens error "game over, man!" #6

@leondz

Description

@leondz

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 "<stdin>", line 1, in <module>
RuntimeError: game over, man!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions