Skip to content

Commit 5aa1bff

Browse files
authored
Merge pull request #2521 from flairNLP/bug_wsd_ufsac_corpus
fix bug in wsd_ufsac corpus
2 parents 8c91fb1 + 6b7cbca commit 5aa1bff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flair/datasets/entity_linking.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,8 @@ def __init__(
12531253
sample_missing_splits_in_multicorpus = 'only_dev'
12541254

12551255
# also we remove 'raganato_ALL' from filenames in case its in the list
1256-
filenames.remove('raganato_ALL')
1256+
if 'raganato_ALL' in filenames:
1257+
filenames.remove('raganato_ALL')
12571258

12581259
# generate the test file
12591260
test_file = determine_tsv_file(filename='raganato_ALL', data_folder=data_folder,

0 commit comments

Comments
 (0)