Skip to content

Commit 6b7cbca

Browse files
committed
fix bug in wsd_ufsac corpus
1 parent da88578 commit 6b7cbca

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)