asahi417 commited on
Commit
f504e2e
·
1 Parent(s): bad90d6
Files changed (1) hide show
  1. tweet_temporal_shift.py +10 -3
tweet_temporal_shift.py CHANGED
@@ -2,7 +2,7 @@
2
  import json
3
  import datasets
4
 
5
- _VERSION = "1.0.5"
6
  _TWEET_TEMPORAL_DESCRIPTION = """"""
7
  _TWEET_TEMPORAL_CITATION = """"""
8
  _TWEET_TOPIC_DESCRIPTION = """
@@ -125,11 +125,11 @@ class TweetTemporalShift(datasets.GeneratorBasedBuilder):
125
  data_url=f"{_ROOT_URL}/tweet_sentiment",
126
  ),
127
  TweetTemporalShiftConfig(
128
- name="sentiment_temporal_small",
129
  description=_TWEET_SENTIMENT_DESCRIPTION,
130
  citation=_TWEET_SENTIMENT_CITATION,
131
  features=["gold_label_binary", "text", "date"],
132
- data_url=f"{_ROOT_URL}/sentiment_temporal_small",
133
  ),
134
  ]
135
  for s in range(3):
@@ -163,6 +163,13 @@ class TweetTemporalShift(datasets.GeneratorBasedBuilder):
163
  features=["gold_label_binary", "text", "date"],
164
  data_url=f"{_ROOT_URL}/tweet_sentiment_test{i}_seed{s}",
165
  ),
 
 
 
 
 
 
 
166
  ]
167
 
168
  def _info(self):
 
2
  import json
3
  import datasets
4
 
5
+ _VERSION = "1.0.6"
6
  _TWEET_TEMPORAL_DESCRIPTION = """"""
7
  _TWEET_TEMPORAL_CITATION = """"""
8
  _TWEET_TOPIC_DESCRIPTION = """
 
125
  data_url=f"{_ROOT_URL}/tweet_sentiment",
126
  ),
127
  TweetTemporalShiftConfig(
128
+ name="sentiment_small_temporal",
129
  description=_TWEET_SENTIMENT_DESCRIPTION,
130
  citation=_TWEET_SENTIMENT_CITATION,
131
  features=["gold_label_binary", "text", "date"],
132
+ data_url=f"{_ROOT_URL}/tweet_sentiment_small",
133
  ),
134
  ]
135
  for s in range(3):
 
163
  features=["gold_label_binary", "text", "date"],
164
  data_url=f"{_ROOT_URL}/tweet_sentiment_test{i}_seed{s}",
165
  ),
166
+ TweetTemporalShiftConfig(
167
+ name=f"sentiment_small_random{i}_seed{s}",
168
+ description=_TWEET_SENTIMENT_DESCRIPTION,
169
+ citation=_TWEET_SENTIMENT_CITATION,
170
+ features=["gold_label_binary", "text", "date"],
171
+ data_url=f"{_ROOT_URL}/tweet_sentiment_small_test{i}_seed{s}",
172
+ ),
173
  ]
174
 
175
  def _info(self):