Skip to content

Commit

Permalink
More useful to output the number of errors before crashing from too m…
Browse files Browse the repository at this point in the history
…any errors
  • Loading branch information
AngledLuffa committed Dec 6, 2024
1 parent 449feae commit 5754ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stanza/utils/datasets/ner/prepare_ner_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,8 @@ def process_french_wikiner_mixed(paths, dataset):
# currently this dataset doesn't find two sentences
# one was dropped by the filter for incompletely tagged lines
# the other is probably not a huge deal to have one duplicate
assert len(missing) <= 2
print("Missing %d sentences" % len(missing))
assert len(missing) <= 2

skipped = 0
silver = []
Expand Down

0 comments on commit 5754ec0

Please sign in to comment.