dibyaaaaax commited on
Commit
2b71f3b
1 Parent(s): 3a57b30

Update semeval2010.py

Browse files
Files changed (1) hide show
  1. semeval2010.py +10 -1
semeval2010.py CHANGED
@@ -31,7 +31,8 @@ _LICENSE = ""
31
  # TODO: Add link to the official dataset URLs here
32
 
33
  _URLS = {
34
- "test": "test.jsonl"
 
35
  }
36
 
37
 
@@ -104,6 +105,14 @@ class SemEval2010(datasets.GeneratorBasedBuilder):
104
 
105
  data_dir = dl_manager.download_and_extract(_URLS)
106
  return [
 
 
 
 
 
 
 
 
107
  datasets.SplitGenerator(
108
  name=datasets.Split.TEST,
109
  # These kwargs will be passed to _generate_examples
 
31
  # TODO: Add link to the official dataset URLs here
32
 
33
  _URLS = {
34
+ "test": "test.jsonl",
35
+ "train": "train.jsonl"
36
  }
37
 
38
 
 
105
 
106
  data_dir = dl_manager.download_and_extract(_URLS)
107
  return [
108
+ datasets.SplitGenerator(
109
+ name=datasets.Split.TRAIN,
110
+ # These kwargs will be passed to _generate_examples
111
+ gen_kwargs={
112
+ "filepath": data_dir['train'],
113
+ "split": "train",
114
+ },
115
+ ),
116
  datasets.SplitGenerator(
117
  name=datasets.Split.TEST,
118
  # These kwargs will be passed to _generate_examples