Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
n<1K
Language Creators:
unknown
Annotations Creators:
unknown
Tags:
License:
boudinfl commited on
Commit
3851125
1 Parent(s): e9be45d
Files changed (1) hide show
  1. semeval-2010-pre.py +8 -7
semeval-2010-pre.py CHANGED
@@ -39,10 +39,11 @@ _LICENSE = "Apache 2.0 License"
39
  # The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
40
  # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
41
  _URLS = {
42
- "test": "test.jsonl"
43
  "train": "train.jsonl"
44
  }
45
 
 
46
  # TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
47
  class SemEval(datasets.GeneratorBasedBuilder):
48
  """TODO: Short description of my dataset."""
@@ -109,19 +110,19 @@ class SemEval(datasets.GeneratorBasedBuilder):
109
  data_dir = dl_manager.download_and_extract(urls)
110
  return [
111
  datasets.SplitGenerator(
112
- name=datasets.Split.TEST,
113
  # These kwargs will be passed to _generate_examples
114
  gen_kwargs={
115
- "filepath": os.path.join(data_dir["test"]),
116
- "split": "test"
117
  },
118
  ),
119
  datasets.SplitGenerator(
120
- name=datasets.Split.TRAIN,
121
  # These kwargs will be passed to _generate_examples
122
  gen_kwargs={
123
- "filepath": os.path.join(data_dir["train"]),
124
- "split": "train"
125
  },
126
  ),
127
  ]
39
  # The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
40
  # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
41
  _URLS = {
42
+ "test": "test.jsonl",
43
  "train": "train.jsonl"
44
  }
45
 
46
+
47
  # TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
48
  class SemEval(datasets.GeneratorBasedBuilder):
49
  """TODO: Short description of my dataset."""
110
  data_dir = dl_manager.download_and_extract(urls)
111
  return [
112
  datasets.SplitGenerator(
113
+ name=datasets.Split.TRAIN,
114
  # These kwargs will be passed to _generate_examples
115
  gen_kwargs={
116
+ "filepath": os.path.join(data_dir["train"]),
117
+ "split": "train",
118
  },
119
  ),
120
  datasets.SplitGenerator(
121
+ name=datasets.Split.TEST,
122
  # These kwargs will be passed to _generate_examples
123
  gen_kwargs={
124
+ "filepath": os.path.join(data_dir["test"]),
125
+ "split": "test"
126
  },
127
  ),
128
  ]