init
Browse files- super_tweet_eval.py +5 -5
super_tweet_eval.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
import json
|
3 |
import datasets
|
4 |
|
5 |
-
|
6 |
_SUPER_TWEET_EVAL_CITATION = """TBA"""
|
7 |
_SUPER_TWEET_EVAL_DESCRIPTION = """TBA"""
|
8 |
_TWEET_TOPIC_DESCRIPTION = """
|
@@ -82,7 +82,7 @@ class SuperTweetEvalConfig(datasets.BuilderConfig):
|
|
82 |
'False' or 'True'.
|
83 |
**kwargs: keyword arguments forwarded to super.
|
84 |
"""
|
85 |
-
super(SuperTweetEvalConfig, self).__init__(version=datasets.Version(
|
86 |
self.features = features
|
87 |
self.label_classes = label_classes
|
88 |
self.data_url = data_url
|
@@ -105,14 +105,14 @@ class SuperTweetEval(datasets.GeneratorBasedBuilder):
|
|
105 |
description=_TWEET_NER7_DESCRIPTION,
|
106 |
citation=_TWEET_NER7_CITATION,
|
107 |
features=["text_tokenized", "label_sequence", "id", "date"],
|
108 |
-
data_url="https://
|
109 |
),
|
110 |
SuperTweetEvalConfig(
|
111 |
name="tweet_qa",
|
112 |
description=_TWEET_QA_DESCRIPTION,
|
113 |
citation=_TWEET_QA_CITATION,
|
114 |
features=["text", "label_str", "paragraph", "question"],
|
115 |
-
data_url="https://
|
116 |
)
|
117 |
]
|
118 |
|
@@ -148,4 +148,4 @@ class SuperTweetEval(datasets.GeneratorBasedBuilder):
|
|
148 |
for i in _list:
|
149 |
data = json.loads(i)
|
150 |
yield _key, data
|
151 |
-
_key += 1
|
|
|
2 |
import json
|
3 |
import datasets
|
4 |
|
5 |
+
_VERSION = "0.0.0"
|
6 |
_SUPER_TWEET_EVAL_CITATION = """TBA"""
|
7 |
_SUPER_TWEET_EVAL_DESCRIPTION = """TBA"""
|
8 |
_TWEET_TOPIC_DESCRIPTION = """
|
|
|
82 |
'False' or 'True'.
|
83 |
**kwargs: keyword arguments forwarded to super.
|
84 |
"""
|
85 |
+
super(SuperTweetEvalConfig, self).__init__(version=datasets.Version(_VERSION), **kwargs)
|
86 |
self.features = features
|
87 |
self.label_classes = label_classes
|
88 |
self.data_url = data_url
|
|
|
105 |
description=_TWEET_NER7_DESCRIPTION,
|
106 |
citation=_TWEET_NER7_CITATION,
|
107 |
features=["text_tokenized", "label_sequence", "id", "date"],
|
108 |
+
data_url="https://huggingface.co/datasets/cardiffnlp/super_tweet_eval/resolve/main/data/tweet_ner7",
|
109 |
),
|
110 |
SuperTweetEvalConfig(
|
111 |
name="tweet_qa",
|
112 |
description=_TWEET_QA_DESCRIPTION,
|
113 |
citation=_TWEET_QA_CITATION,
|
114 |
features=["text", "label_str", "paragraph", "question"],
|
115 |
+
data_url="https://huggingface.co/datasets/cardiffnlp/super_tweet_eval/resolve/main/data/tweet_qa",
|
116 |
)
|
117 |
]
|
118 |
|
|
|
148 |
for i in _list:
|
149 |
data = json.loads(i)
|
150 |
yield _key, data
|
151 |
+
_key += 1
|