asahi417 commited on
Commit
b32971c
·
1 Parent(s): f1f8eec
Files changed (1) hide show
  1. tweet_topic_multilingual.py +2 -2
tweet_topic_multilingual.py CHANGED
@@ -4,7 +4,7 @@ import datasets
4
 
5
  logger = datasets.logging.get_logger(__name__)
6
  _DESCRIPTION = """[TweetTopicMultilingual](TBA)"""
7
- _VERSION = "0.0.1"
8
  _CITATION = """TBA"""
9
  _HOME_PAGE = "https://cardiffnlp.github.io"
10
  _NAME = "tweet_topic_multilingual"
@@ -47,7 +47,7 @@ class TweetTopicMultilingual(datasets.GeneratorBasedBuilder):
47
 
48
  def _split_generators(self, dl_manager):
49
  downloaded_file = dl_manager.download_and_extract(_URL[self.config.name])
50
- splits = _URL[self.config.name]
51
  return [datasets.SplitGenerator(name=i, gen_kwargs={"filepath": downloaded_file[i]}) for i in splits]
52
 
53
  def _generate_examples(self, filepath):
 
4
 
5
  logger = datasets.logging.get_logger(__name__)
6
  _DESCRIPTION = """[TweetTopicMultilingual](TBA)"""
7
+ _VERSION = "0.0.2"
8
  _CITATION = """TBA"""
9
  _HOME_PAGE = "https://cardiffnlp.github.io"
10
  _NAME = "tweet_topic_multilingual"
 
47
 
48
  def _split_generators(self, dl_manager):
49
  downloaded_file = dl_manager.download_and_extract(_URL[self.config.name])
50
+ splits = _URL[self.config.name].keys()
51
  return [datasets.SplitGenerator(name=i, gen_kwargs={"filepath": downloaded_file[i]}) for i in splits]
52
 
53
  def _generate_examples(self, filepath):