asahi417 commited on
Commit
597de10
1 Parent(s): 4c69e22
Files changed (1) hide show
  1. tweet_topic_multilingual.py +3 -3
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.0"
8
  _CITATION = """TBA"""
9
  _HOME_PAGE = "https://cardiffnlp.github.io"
10
  _NAME = "tweet_topic_multilingual"
@@ -19,7 +19,7 @@ _URL["en_2022"] = {split: f"{_ROOT_URL}/en_2022/en_{split}.jsonl" for split in [
19
  # cross validation
20
  for lan in _LANGUAGES:
21
  _URL.update({
22
- f"{lan}/cross_validation_{n}": {
23
  split: f"{_ROOT_URL}/{lan}/cross_validation_{n}/{lan}_{split}.jsonl"
24
  for split in ["train", "test", "validation"]
25
  } for n in range(5)
@@ -42,7 +42,7 @@ class TweetTopicMultilingual(datasets.GeneratorBasedBuilder):
42
  """Dataset."""
43
 
44
  BUILDER_CONFIGS = [
45
- Config(name=f"{_NAME}/{i}", version=datasets.Version(_VERSION), description=_DESCRIPTION) for i in _URL.keys()
46
  ]
47
 
48
  def _split_generators(self, dl_manager):
 
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"
 
19
  # cross validation
20
  for lan in _LANGUAGES:
21
  _URL.update({
22
+ f"{lan}_cross_validation_{n}": {
23
  split: f"{_ROOT_URL}/{lan}/cross_validation_{n}/{lan}_{split}.jsonl"
24
  for split in ["train", "test", "validation"]
25
  } for n in range(5)
 
42
  """Dataset."""
43
 
44
  BUILDER_CONFIGS = [
45
+ Config(name=fi, version=datasets.Version(_VERSION), description=_DESCRIPTION) for i in _URL.keys()
46
  ]
47
 
48
  def _split_generators(self, dl_manager):