dainis-boumber commited on
Commit
884e054
·
1 Parent(s): ee0a8c0

Update difraud.py

Browse files
Files changed (1) hide show
  1. difraud.py +7 -28
difraud.py CHANGED
@@ -34,38 +34,17 @@ _LICENSE = """
34
  IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35
  """
36
 
37
- class DIFrauDConfig(datasets.BuilderConfig):
38
- def __init__(self, **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(datasets.BuilderConfig, 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"""
60
 
61
  BUILDER_CONFIGS = [
62
- DIFrauDConfig(name="fake_news", description="Fake News domain"),
63
- DIFrauDConfig(name="job_scams", description="Online Job Scams"),
64
- DIFrauDConfig(name="phishing", description="Email phishing attacks"),
65
- DIFrauDConfig(name="political_statements", description="Statements by various politicians"),
66
- DIFrauDConfig(name="product_reviews", description="Amazon product reviews"),
67
- DIFrauDConfig(name="sms", description="SMS spam and phishing attacks"),
68
- DIFrauDConfig(name="twitter_rumours",
69
  description="Collection of rumours from twitter spanning several years and topics"),
70
  ]
71
 
 
34
  IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35
  """
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  class DIFrauD(datasets.GeneratorBasedBuilder):
38
  """Domain Independent Fraud Detection benchmarks -- a Large multi-domain english corpus of truthful and deceptive texts"""
39
 
40
  BUILDER_CONFIGS = [
41
+ datasets.BuilderConfig(name="fake_news", description="Fake News domain"),
42
+ datasets.BuilderConfig(name="job_scams", description="Online Job Scams"),
43
+ datasets.BuilderConfig(name="phishing", description="Email phishing attacks"),
44
+ datasets.BuilderConfig(name="political_statements", description="Statements by various politicians"),
45
+ datasets.BuilderConfig(name="product_reviews", description="Amazon product reviews"),
46
+ datasets.BuilderConfig(name="sms", description="SMS spam and phishing attacks"),
47
+ datasets.BuilderConfig(name="twitter_rumours",
48
  description="Collection of rumours from twitter spanning several years and topics"),
49
  ]
50