updated script version
Browse files- super_tweet_eval.py +5 -3
super_tweet_eval.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
import json
|
3 |
import datasets
|
4 |
|
5 |
-
_VERSION = "0.1.
|
6 |
_SUPER_TWEET_EVAL_CITATION = """TBA"""
|
7 |
_SUPER_TWEET_EVAL_DESCRIPTION = """TBA"""
|
8 |
_TWEET_TOPIC_DESCRIPTION = """
|
@@ -221,8 +221,8 @@ class SuperTweetEval(datasets.GeneratorBasedBuilder):
|
|
221 |
description=_TEMPO_WIC_DESCRIPTION,
|
222 |
citation=_TEMPO_WIC_CITATION,
|
223 |
features=['gold_label_binary', 'word',
|
224 |
-
'text_1', 'text_1_tokenized', 'text_start_1', 'text_end_1',
|
225 |
-
'text_2', 'text_2_tokenized', 'text_start_2', 'text_end_2'],
|
226 |
data_url="https://huggingface.co/datasets/cardiffnlp/super_tweet_eval/resolve/main/data/tempo_wic",
|
227 |
),
|
228 |
SuperTweetEvalConfig(
|
@@ -280,6 +280,8 @@ class SuperTweetEval(datasets.GeneratorBasedBuilder):
|
|
280 |
features["text_end_2"] = datasets.Value("int32")
|
281 |
features["text_1_tokenized"] = datasets.Sequence(datasets.Value("string"))
|
282 |
features["text_2_tokenized"] = datasets.Sequence(datasets.Value("string"))
|
|
|
|
|
283 |
if self.config.name == "tweet_hate":
|
284 |
label_classes = [
|
285 |
'hate_gender','hate_race', 'hate_sexuality', 'hate_religion','hate_origin', 'hate_disability',
|
|
|
2 |
import json
|
3 |
import datasets
|
4 |
|
5 |
+
_VERSION = "0.1.40"
|
6 |
_SUPER_TWEET_EVAL_CITATION = """TBA"""
|
7 |
_SUPER_TWEET_EVAL_DESCRIPTION = """TBA"""
|
8 |
_TWEET_TOPIC_DESCRIPTION = """
|
|
|
221 |
description=_TEMPO_WIC_DESCRIPTION,
|
222 |
citation=_TEMPO_WIC_CITATION,
|
223 |
features=['gold_label_binary', 'word',
|
224 |
+
'text_1', 'text_1_tokenized', 'text_start_1', 'text_end_1', 'date_1',
|
225 |
+
'text_2', 'text_2_tokenized', 'text_start_2', 'text_end_2', 'date_2'],
|
226 |
data_url="https://huggingface.co/datasets/cardiffnlp/super_tweet_eval/resolve/main/data/tempo_wic",
|
227 |
),
|
228 |
SuperTweetEvalConfig(
|
|
|
280 |
features["text_end_2"] = datasets.Value("int32")
|
281 |
features["text_1_tokenized"] = datasets.Sequence(datasets.Value("string"))
|
282 |
features["text_2_tokenized"] = datasets.Sequence(datasets.Value("string"))
|
283 |
+
features['date_1'] = datasets.Value("string")
|
284 |
+
features['date_2'] = datasets.Value("string")
|
285 |
if self.config.name == "tweet_hate":
|
286 |
label_classes = [
|
287 |
'hate_gender','hate_race', 'hate_sexuality', 'hate_religion','hate_origin', 'hate_disability',
|