Skip to content

Commit

Permalink
Always expect tc_labels_template
Browse files Browse the repository at this point in the history
  • Loading branch information
hemildesai committed Mar 11, 2021
1 parent a7e1f69 commit 406ed9d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions datasets/sem_eval_2020_task_11/sem_eval_2020_task_11.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,7 @@ def _split_generators(self, dl_manager):
path_to_manual_file = os.path.abspath(os.path.expanduser(dl_manager.manual_dir))

tc_labels_template = os.path.join(path_to_manual_file, "test-task-tc-template.out")
if os.path.isfile(tc_labels_template):
tc_test_template = self._process_tc_labels_template(tc_labels_template)
else:
tc_test_template = None
tc_test_template = self._process_tc_labels_template(tc_labels_template)

keys = {}
for split in ["train", "dev", "test"]:
Expand Down

0 comments on commit 406ed9d

Please sign in to comment.