Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail gracefully on unexpected input #8

Open
spyysalo opened this issue May 15, 2012 · 0 comments
Open

Fail gracefully on unexpected input #8

spyysalo opened this issue May 15, 2012 · 0 comments

Comments

@spyysalo
Copy link
Member

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.

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

No branches or pull requests

1 participant