bugfix nerd + wic
Browse files- super_tweet_eval.py +6 -6
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', '
|
225 |
-
'text_2', 'text_2_tokenized', '
|
226 |
data_url="https://huggingface.co/datasets/cardiffnlp/super_tweet_eval/resolve/main/data/tempo_wic",
|
227 |
),
|
228 |
SuperTweetEvalConfig(
|
@@ -236,7 +236,7 @@ class SuperTweetEval(datasets.GeneratorBasedBuilder):
|
|
236 |
name="tweet_nerd",
|
237 |
description=_TWEET_NERD_DESCRIPTION,
|
238 |
citation=_TWEET_NERD_CITATION,
|
239 |
-
features=['gold_label_binary', 'target', 'context', 'definition', '
|
240 |
data_url="https://huggingface.co/datasets/cardiffnlp/super_tweet_eval/resolve/main/data/tweet_nerd",
|
241 |
),
|
242 |
SuperTweetEvalConfig(
|
@@ -293,8 +293,8 @@ class SuperTweetEval(datasets.GeneratorBasedBuilder):
|
|
293 |
features['target'] = datasets.Value("string")
|
294 |
features['context'] = datasets.Value("string")
|
295 |
features['definition'] = datasets.Value("string")
|
296 |
-
features['
|
297 |
-
features['
|
298 |
features['gold_label_binary'] = datasets.Value("int32")
|
299 |
if self.config.name == "tweet_emoji":
|
300 |
features["gold_label"] = datasets.Value("int32")
|
|
|
2 |
import json
|
3 |
import datasets
|
4 |
|
5 |
+
_VERSION = "0.1.35"
|
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',
|
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(
|
|
|
236 |
name="tweet_nerd",
|
237 |
description=_TWEET_NERD_DESCRIPTION,
|
238 |
citation=_TWEET_NERD_CITATION,
|
239 |
+
features=['gold_label_binary', 'target', 'context', 'definition', 'text_start', 'text_end'],
|
240 |
data_url="https://huggingface.co/datasets/cardiffnlp/super_tweet_eval/resolve/main/data/tweet_nerd",
|
241 |
),
|
242 |
SuperTweetEvalConfig(
|
|
|
293 |
features['target'] = datasets.Value("string")
|
294 |
features['context'] = datasets.Value("string")
|
295 |
features['definition'] = datasets.Value("string")
|
296 |
+
features['text_start'] = datasets.Value("int32")
|
297 |
+
features['text_end'] = datasets.Value("int32")
|
298 |
features['gold_label_binary'] = datasets.Value("int32")
|
299 |
if self.config.name == "tweet_emoji":
|
300 |
features["gold_label"] = datasets.Value("int32")
|