Skip to content

Fail gracefully on unexpected input #8

@spyysalo

Description

@spyysalo

While testing #6, noted that if NERsuite is provided with labeled examples in tag mode, the system just crashes with a segmentation fault. As this is a pretty easy mistake to make, it would be nice if it failed more gracefully, e.g. giving a descriptive error message.

To replicate, run

cat DATA-WITH-LABELS | nersuite tag -m model

for some DATA-WITH-LABELS that works find with

cut -f 2- DATA-WITH-LABELS | nersuite tag -m model

the result is a crash with segfault.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions