hipe-eval / HIPE-scorer

A python module for evaluating NERC and NEL system performances as defined in the HIPE shared tasks (formerly CLEF-HIPE-2020-scorer).
https://hipe-eval.github.io
MIT License
13 stars 4 forks source link

Added a check for robustness that detects TSV files with less columns… #22

Closed mromanello closed 2 years ago

mromanello commented 2 years ago

Problem: when a TSV line contains less columns than expected (as per fieldnames) the CSV reader will convert the missing values into None, without raising any error.

This PR adds a check for non-None values and raises an exception if there is a mismatch between expected and actual number of columns.