Rodrigo1771 commited on
Commit
6ed641a
1 Parent(s): da87977

updated loading script to recognize dummy test set

Browse files
Files changed (1) hide show
  1. distemist-ner.py +2 -2
distemist-ner.py CHANGED
@@ -67,14 +67,14 @@ class DisTEMISTNER(datasets.GeneratorBasedBuilder):
67
  urls_to_download = {
68
  "train": f"{_URL}{_TRAINING_FILE}",
69
  "dev": f"{_URL}{_DEV_FILE}",
70
- # "test": f"{_URL}{_TEST_FILE}",
71
  }
72
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
73
 
74
  return [
75
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
76
  datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
77
- # datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
78
  ]
79
 
80
  def _generate_examples(self, filepath):
 
67
  urls_to_download = {
68
  "train": f"{_URL}{_TRAINING_FILE}",
69
  "dev": f"{_URL}{_DEV_FILE}",
70
+ "test": f"{_URL}{_TEST_FILE}",
71
  }
72
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
73
 
74
  return [
75
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
76
  datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
77
+ datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
78
  ]
79
 
80
  def _generate_examples(self, filepath):