asahi417 commited on
Commit
be697cd
·
1 Parent(s): c518314

fix dataset

Browse files
Files changed (2) hide show
  1. README.md +1 -0
  2. super_tweeteval.py +2 -2
README.md CHANGED
@@ -58,6 +58,7 @@ The data fields are the same among all splits.
58
  - `text_tokenized`: a list of `string` feature.
59
  - `gold_label_sequence`: a list of `string` feature.
60
  - `date`: a `string` feature.
 
61
 
62
  #### tweet_qa
63
  - `text`: a `string` feature.
 
58
  - `text_tokenized`: a list of `string` feature.
59
  - `gold_label_sequence`: a list of `string` feature.
60
  - `date`: a `string` feature.
61
+ - `entities`: a `dictionary` feature.
62
 
63
  #### tweet_qa
64
  - `text`: a `string` feature.
super_tweeteval.py CHANGED
@@ -2,7 +2,7 @@
2
  import json
3
  import datasets
4
 
5
- _VERSION = "0.1.5"
6
  _SUPER_TWEETEVAL_CITATION = """TBA"""
7
  _SUPER_TWEETEVAL_DESCRIPTION = """TBA"""
8
  _TWEET_TOPIC_DESCRIPTION = """
@@ -309,7 +309,7 @@ class SuperTweetEval(datasets.GeneratorBasedBuilder):
309
  datasets.features.ClassLabel(names=names))
310
  features["text_tokenized"] = datasets.Sequence(
311
  datasets.Value("string"))
312
- features["entities"] = datasets.Sequence({"entity": datasets.Value("string"), "type": datasets.Value("string")})
313
  if self.config.name in ["tweet_intimacy", "tweet_similarity"]:
314
  features["gold_score"] = datasets.Value("float32")
315
  if self.config.name == "tempo_wic":
 
2
  import json
3
  import datasets
4
 
5
+ _VERSION = "0.1.51"
6
  _SUPER_TWEETEVAL_CITATION = """TBA"""
7
  _SUPER_TWEETEVAL_DESCRIPTION = """TBA"""
8
  _TWEET_TOPIC_DESCRIPTION = """
 
309
  datasets.features.ClassLabel(names=names))
310
  features["text_tokenized"] = datasets.Sequence(
311
  datasets.Value("string"))
312
+ features["entities"] = datasets.features.Sequence({"entity": datasets.Value("string"), "type": datasets.Value("string")})
313
  if self.config.name in ["tweet_intimacy", "tweet_similarity"]:
314
  features["gold_score"] = datasets.Value("float32")
315
  if self.config.name == "tempo_wic":