mlynatom commited on
Commit
0e3e2d4
1 Parent(s): 980eebb

new nli versions of subsets added

Browse files
07_nli/.gitattributes ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ dev.jsonl filter=lfs diff=lfs merge=lfs -text
2
+ test.jsonl filter=lfs diff=lfs merge=lfs -text
3
+ train.jsonl filter=lfs diff=lfs merge=lfs -text
07_nli/dev.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ab2755cf2e61d2c51687d644305a69c1578979b36023a44a5008be15508feff
3
+ size 37791073
07_nli/test.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:512dfae0277b5ea05bb5c326f52461e6ef21b563e0a5aba60fec6331cf943b55
3
+ size 45650910
07_nli/train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78cff06995a64b5fdbb550aaa659f4872be4060444c498ce80fd6e82802cf42a
3
+ size 1081713244
csfever_v2.py CHANGED
@@ -54,10 +54,21 @@ _URLS = {
54
  "original_nli": {"train": "./original_nli/train.jsonl",
55
  "dev" : "./original_nli/dev.jsonl",
56
  "test": "./original_nli/test.jsonl"},
 
 
 
 
 
 
 
 
 
57
  }
58
 
59
  _ORIGINAL_DESCRIPTION = ""
60
 
 
 
61
 
62
  #Name of the dataset usually matches the script name with CamelCase instead of snake_case
63
  class CsFEVERv2(datasets.GeneratorBasedBuilder):
@@ -108,6 +119,21 @@ class CsFEVERv2(datasets.GeneratorBasedBuilder):
108
  version=VERSION,
109
  description=_ORIGINAL_DESCRIPTION
110
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  ]
112
 
113
  DEFAULT_CONFIG_NAME = "original" # It's not mandatory to have a default configuration. Just use one if it make sense.
@@ -126,7 +152,7 @@ class CsFEVERv2(datasets.GeneratorBasedBuilder):
126
  # These are the features of your dataset like images, labels ...
127
  }
128
  )
129
- elif self.config.name == "original_nli": # This is the name of the configuration selected in BUILDER_CONFIGS above
130
  features = datasets.Features(
131
  {
132
  "id": datasets.Value("int32"),
@@ -236,7 +262,7 @@ class CsFEVERv2(datasets.GeneratorBasedBuilder):
236
  "claim": data_point["claim"],
237
  "evidence": data_point["evidence"],
238
  }
239
- elif self.config.name == "original_nli":
240
  yield key, {
241
  "id": data_point["id"],
242
  "label": data_point["label"],
 
54
  "original_nli": {"train": "./original_nli/train.jsonl",
55
  "dev" : "./original_nli/dev.jsonl",
56
  "test": "./original_nli/test.jsonl"},
57
+ "f1_nli": {"train": "./f1_nli/train.jsonl",
58
+ "dev" : "./f1_nli/dev.jsonl",
59
+ "test": "./f1_nli/test.jsonl"},
60
+ "07_nli": {"train": "./07_nli/train.jsonl",
61
+ "dev" : "./07_nli/dev.jsonl",
62
+ "test": "./07_nli/test.jsonl"},
63
+ "precision_nli": {"train": "./precision_nli/train.jsonl",
64
+ "dev" : "./precision_nli/dev.jsonl",
65
+ "test": "./precision_nli/test.jsonl"},
66
  }
67
 
68
  _ORIGINAL_DESCRIPTION = ""
69
 
70
+ _NLI_NAMES = ["original_nli", "07_nli", "precision_nli", "f1_nli"]
71
+
72
 
73
  #Name of the dataset usually matches the script name with CamelCase instead of snake_case
74
  class CsFEVERv2(datasets.GeneratorBasedBuilder):
 
119
  version=VERSION,
120
  description=_ORIGINAL_DESCRIPTION
121
  ),
122
+ datasets.BuilderConfig(
123
+ name="07_nli",
124
+ version=VERSION,
125
+ description=_ORIGINAL_DESCRIPTION
126
+ ),
127
+ datasets.BuilderConfig(
128
+ name="f1_nli",
129
+ version=VERSION,
130
+ description=_ORIGINAL_DESCRIPTION
131
+ ),
132
+ datasets.BuilderConfig(
133
+ name="precision_nli",
134
+ version=VERSION,
135
+ description=_ORIGINAL_DESCRIPTION
136
+ ),
137
  ]
138
 
139
  DEFAULT_CONFIG_NAME = "original" # It's not mandatory to have a default configuration. Just use one if it make sense.
 
152
  # These are the features of your dataset like images, labels ...
153
  }
154
  )
155
+ elif self.config.name in _NLI_NAMES: # This is the name of the configuration selected in BUILDER_CONFIGS above
156
  features = datasets.Features(
157
  {
158
  "id": datasets.Value("int32"),
 
262
  "claim": data_point["claim"],
263
  "evidence": data_point["evidence"],
264
  }
265
+ elif self.config.name in _NLI_NAMES:
266
  yield key, {
267
  "id": data_point["id"],
268
  "label": data_point["label"],
f1_nli/.gitattributes ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ dev.jsonl filter=lfs diff=lfs merge=lfs -text
2
+ test.jsonl filter=lfs diff=lfs merge=lfs -text
3
+ train.jsonl filter=lfs diff=lfs merge=lfs -text
f1_nli/dev.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f85c2918547b099f2174545fa202188f15c18b8f038470fc9271fde02a8c1002
3
+ size 29177007
f1_nli/test.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac1ad3c49a50db74e643904d7309aa789df5d168526cc814fefeaf41931ba1db
3
+ size 33321566
f1_nli/train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db6b6bf35f0d5846405e291eec1d28383a2a6139d6e083b570e9e90d28fdb779
3
+ size 777207904
precision_nli/.gitattributes ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ dev.jsonl filter=lfs diff=lfs merge=lfs -text
2
+ test.jsonl filter=lfs diff=lfs merge=lfs -text
3
+ train.jsonl filter=lfs diff=lfs merge=lfs -text
precision_nli/dev.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db7f527d28577acf570ebe8cf5afe25eb70222674f0287f96b1764db48d54b85
3
+ size 22022766
precision_nli/test.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2943278cb127daa3a22c8ca792fa70a9192429167cef5fae7a35239cd73bcf34
3
+ size 24121502
precision_nli/train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36ae8df1902ad6242f8523c4355efc8c56b3390dcd8872ecb0372e3919e4f734
3
+ size 521170347