khalidalt commited on
Commit
40423fa
1 Parent(s): 3df0ae4

Update ultimate_arabic_news.py

Browse files
Files changed (1) hide show
  1. ultimate_arabic_news.py +25 -0
ultimate_arabic_news.py CHANGED
@@ -47,3 +47,28 @@ class Ultimate_Arabic_News(datasets.GeneratorBasedBuilder):
47
  ),
48
  ]
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  ),
48
  ]
49
 
50
+ def _info(self):
51
+ # TODO(tydiqa): Specifies the datasets.DatasetInfo object
52
+ return datasets.DatasetInfo(
53
+ # This is the description that will appear on the datasets page.
54
+ description=_DESCRIPTION,
55
+ # datasets.features.FeatureConnectors
56
+ features=datasets.Features(
57
+ {
58
+
59
+ "text": datasets.Value("string"),
60
+ "label": datasets.Value("string"),
61
+
62
+ ),
63
+ # If there's a common (input, target) tuple from the features,
64
+ # specify them here. They'll be used if as_supervised=True in
65
+ # builder.as_dataset.
66
+ supervised_keys=None,
67
+ # Homepage of the dataset for documentation
68
+ homepage="https://data.mendeley.com/datasets/jz56k5wxz7/1",
69
+ citation=_CITATION,
70
+ )
71
+
72
+
73
+
74
+