Datasets:
Update tweet_sentiment_multilingual.py
Browse files
tweet_sentiment_multilingual.py
CHANGED
@@ -28,7 +28,7 @@ _LANGUAGE = ["arabic", "english", "french", "german", "hindi", "italian", "portu
|
|
28 |
_URLS = {l: {
|
29 |
k: [f'{_BASE_URL}/{l}/{k}.jsonl'] for k in [str(datasets.Split.TEST), str(datasets.Split.TRAIN), str(datasets.Split.VALIDATION)]
|
30 |
} for l in _LANGUAGE}
|
31 |
-
|
32 |
|
33 |
|
34 |
class TweetSentimentMultilingualConfig(datasets.BuilderConfig):
|
@@ -47,7 +47,7 @@ class TweetSentimentMultilingual(datasets.GeneratorBasedBuilder):
|
|
47 |
BUILDER_CONFIGS = [
|
48 |
TweetSentimentMultilingualConfig(name=l, version=datasets.Version(_VERSION), description=_DESCRIPTION) for l in _LANGUAGE
|
49 |
]
|
50 |
-
|
51 |
|
52 |
def _info(self):
|
53 |
names = ["negative", "neutral", "positive"]
|
|
|
28 |
_URLS = {l: {
|
29 |
k: [f'{_BASE_URL}/{l}/{k}.jsonl'] for k in [str(datasets.Split.TEST), str(datasets.Split.TRAIN), str(datasets.Split.VALIDATION)]
|
30 |
} for l in _LANGUAGE}
|
31 |
+
_URLS['all'] = {k: [f'{_BASE_URL}/{l}/{k}.jsonl' for l in _LANGUAGE] for k in [str(datasets.Split.TEST), str(datasets.Split.TRAIN), str(datasets.Split.VALIDATION)]}
|
32 |
|
33 |
|
34 |
class TweetSentimentMultilingualConfig(datasets.BuilderConfig):
|
|
|
47 |
BUILDER_CONFIGS = [
|
48 |
TweetSentimentMultilingualConfig(name=l, version=datasets.Version(_VERSION), description=_DESCRIPTION) for l in _LANGUAGE
|
49 |
]
|
50 |
+
BUILDER_CONFIGS += [TweetSentimentMultilingualConfig(name='all', version=datasets.Version(_VERSION), description=_DESCRIPTION)]
|
51 |
|
52 |
def _info(self):
|
53 |
names = ["negative", "neutral", "positive"]
|