LisaWang0306 commited on
Commit
027a870
1 Parent(s): 1bdf84f

Update dbp15k-fr-en.py

Browse files
Files changed (1) hide show
  1. dbp15k-fr-en.py +2 -21
dbp15k-fr-en.py CHANGED
@@ -5,26 +5,7 @@ import pickle
5
  class Dbp15kFrEnConfig(datasets.BuilderConfig):
6
 
7
  def __init__(self, features, data_url, citation, url, label_classes=("False", "True"), **kwargs):
8
- """BuilderConfig for SuperGLUE.
9
- Args:
10
- features: `list[string]`, list of the features that will appear in the
11
- feature dict. Should not include "label".
12
- data_url: `string`, url to download the zip file from.
13
- citation: `string`, citation for the data set.
14
- url: `string`, url for information about the data set.
15
- label_classes: `list[string]`, the list of classes for the label if the
16
- label is present as a string. Non-string labels will be cast to either
17
- 'False' or 'True'.
18
- **kwargs: keyword arguments forwarded to super.
19
- """
20
- # Version history:
21
- # 1.0.3: Fix not including entity position in ReCoRD.
22
- # 1.0.2: Fixed non-nondeterminism in ReCoRD.
23
- # 1.0.1: Change from the pre-release trial version of SuperGLUE (v1.9) to
24
- # the full release (v2.0).
25
- # 1.0.0: S3 (new shuffling, sharding and slicing mechanism).
26
- # 0.0.2: Initial version.
27
- super(Dbp15kFrEnConfig, self).__init__(version=datasets.Version("1.0.3"), **kwargs)
28
  self.features = features
29
  self.label_classes = label_classes
30
  self.data_url = data_url
@@ -219,4 +200,4 @@ class Dbp15kFrEn(datasets.GeneratorBasedBuilder):
219
  yield i, {
220
  "left_id": row[0],
221
  "right_id": row[1]
222
- }
 
5
  class Dbp15kFrEnConfig(datasets.BuilderConfig):
6
 
7
  def __init__(self, features, data_url, citation, url, label_classes=("False", "True"), **kwargs):
8
+ super(Dbp15kFrEnConfig, self).__init__(version=datasets.Version("0.0.1"), **kwargs)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  self.features = features
10
  self.label_classes = label_classes
11
  self.data_url = data_url
 
200
  yield i, {
201
  "left_id": row[0],
202
  "right_id": row[1]
203
+ }