Skip to content

Commit

Permalink
avoid warnings if no IOBES tags have been converted
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-clematide committed May 12, 2022
1 parent 5b5312f commit dffa502
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hipe_evaluation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ def read_conll_annotations(fname, glueing_col_pairs=None, structure_only=False):
doc_annotations.append(sent_annotations)
annotations.append(doc_annotations)

logging.warning(f"Converted {all_s_tags} S-tags and {all_e_tags} E-tags.")
if all_s_tags+all_e_tags > 0:
logging.warning(f"Converted {all_s_tags} S-tags and {all_e_tags} E-tags.")
return annotations


Expand Down

0 comments on commit dffa502

Please sign in to comment.