Skip to content

CRFsuiteDumpParser fails to parse dump if attributes contain newlines #148

Description

@CisterMoke

The CRFsuiteDumpParser parses a dump line per line with the assumption that each line is complete. Whenever an attribute contains a newline however, some lines will be broken up over multiple lines. Take for example the following broken up state feature line

(0) -1:word.lower:
 
   
   --> O: 0.000003

This will break parse_STATE_FEATURES because the first line will not match the regex.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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