dainis-boumber commited on
Commit
05c983d
·
1 Parent(s): 423bea8

Update difraud.py

Browse files
Files changed (1) hide show
  1. difraud.py +18 -18
difraud.py CHANGED
@@ -36,24 +36,24 @@ _LICENSE = """
36
 
37
  class DIFrauDConfig(datasets.BuilderConfig):
38
  def __init__(self, name **kwargs):
39
- """
40
- Args:
41
- features: `list[string]`, list of the features that will appear in the
42
- feature dict. Should not include "label".
43
- data_url: `string`, url to download the zip file from.
44
- citation: `string`, citation for the data set.
45
- url: `string`, url for information about the data set.
46
- **kwargs: keyword arguments forwarded to super.
47
- """
48
-
49
- super(SuperGlueConfig, self).__init__(**kwargs)
50
- self.name = name
51
- self.features = datasets.Features(
52
- {
53
- "text": datasets.Value("string"),
54
- "label": datasets.ClassLabel(num_classes=2, names=['non-deceptive', 'deceptive']),
55
- }
56
- )
57
 
58
  class DIFrauD(datasets.GeneratorBasedBuilder):
59
  """Domain Independent Fraud Detection benchmarks -- a Large multi-domain english corpus of truthful and deceptive texts"""
 
36
 
37
  class DIFrauDConfig(datasets.BuilderConfig):
38
  def __init__(self, name **kwargs):
39
+ """
40
+ Args:
41
+ features: `list[string]`, list of the features that will appear in the
42
+ feature dict. Should not include "label".
43
+ data_url: `string`, url to download the zip file from.
44
+ citation: `string`, citation for the data set.
45
+ url: `string`, url for information about the data set.
46
+ **kwargs: keyword arguments forwarded to super.
47
+ """
48
+
49
+ super(SuperGlueConfig, self).__init__(**kwargs)
50
+ self.name = name
51
+ self.features = datasets.Features(
52
+ {
53
+ "text": datasets.Value("string"),
54
+ "label": datasets.ClassLabel(num_classes=2, names=['non-deceptive', 'deceptive']),
55
+ }
56
+ )
57
 
58
  class DIFrauD(datasets.GeneratorBasedBuilder):
59
  """Domain Independent Fraud Detection benchmarks -- a Large multi-domain english corpus of truthful and deceptive texts"""