Datasets:
Update AfriSenti-Twitter.py
Browse files- AfriSenti-Twitter.py +2 -4
AfriSenti-Twitter.py
CHANGED
@@ -100,8 +100,7 @@ class AfriSenti(datasets.GeneratorBasedBuilder):
|
|
100 |
AfriSentiConfig(
|
101 |
name=lang,
|
102 |
description=textwrap.dedent(
|
103 |
-
f"""
|
104 |
-
{lang} dataset."""
|
105 |
),
|
106 |
text_features={"tweet": "tweet"},
|
107 |
label_classes=["positive", "neutral", "negative"],
|
@@ -110,8 +109,7 @@ class AfriSenti(datasets.GeneratorBasedBuilder):
|
|
110 |
valid_url=f"https://raw.githubusercontent.com/afrisenti-semeval/afrisent-semeval-2023/main/data/{lang}/dev.tsv",
|
111 |
test_url=f"https://raw.githubusercontent.com/afrisenti-semeval/afrisent-semeval-2023/main/data/{lang}/test.tsv",
|
112 |
citation=textwrap.dedent(
|
113 |
-
f"""
|
114 |
-
{lang} citation"""
|
115 |
),
|
116 |
),
|
117 |
)
|
|
|
100 |
AfriSentiConfig(
|
101 |
name=lang,
|
102 |
description=textwrap.dedent(
|
103 |
+
f"""{_DESCRIPTION}"""
|
|
|
104 |
),
|
105 |
text_features={"tweet": "tweet"},
|
106 |
label_classes=["positive", "neutral", "negative"],
|
|
|
109 |
valid_url=f"https://raw.githubusercontent.com/afrisenti-semeval/afrisent-semeval-2023/main/data/{lang}/dev.tsv",
|
110 |
test_url=f"https://raw.githubusercontent.com/afrisenti-semeval/afrisent-semeval-2023/main/data/{lang}/test.tsv",
|
111 |
citation=textwrap.dedent(
|
112 |
+
f"""{_CITATION}"""
|
|
|
113 |
),
|
114 |
),
|
115 |
)
|