Update ultimate_arabic_news.py
Browse files- ultimate_arabic_news.py +20 -20
ultimate_arabic_news.py
CHANGED
@@ -24,28 +24,28 @@ class UAN_Config(datasets.BuilderConfig):
|
|
24 |
|
25 |
|
26 |
class Ultimate_Arabic_News(datasets.GeneratorBasedBuilder):
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
),
|
37 |
),
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
),
|
48 |
-
|
|
|
49 |
|
50 |
def _info(self):
|
51 |
# TODO(tydiqa): Specifies the datasets.DatasetInfo object
|
|
|
24 |
|
25 |
|
26 |
class Ultimate_Arabic_News(datasets.GeneratorBasedBuilder):
|
27 |
+
VERSION = datasets.Version("1.1.0")
|
28 |
+
BUILDER_CONFIGS = [
|
29 |
+
UAN_Config(
|
30 |
+
name="UltimateArabic",
|
31 |
+
description=textwrap.dedent(
|
32 |
+
"""\
|
33 |
+
UltimateArabic: A file containing more than 193,000 original Arabic news texts, without pre-processing. The texts contain words,
|
34 |
+
numbers, and symbols that can be removed using pre-processing to increase accuracy when using the dataset in various Arabic natural
|
35 |
+
language processing tasks such as text classification."""
|
|
|
36 |
),
|
37 |
+
),
|
38 |
+
UAN_Config(
|
39 |
+
name="UltimateArabicPrePros",
|
40 |
+
description=textwrap.dedent(
|
41 |
+
"""UltimateArabicPrePros: It is a file that contains the data mentioned in the first file, but after pre-processing, where
|
42 |
+
the number of data became about 188,000 text documents, where stop words, non-Arabic words, symbols and numbers have been
|
43 |
+
removed so that this file is ready for use directly in the various Arabic natural language processing tasks. Like text
|
44 |
+
classification.
|
45 |
+
"""
|
46 |
),
|
47 |
+
),
|
48 |
+
]
|
49 |
|
50 |
def _info(self):
|
51 |
# TODO(tydiqa): Specifies the datasets.DatasetInfo object
|