init
Browse files
training_scripts/script.sh
CHANGED
@@ -9,7 +9,7 @@ python finetune_t5.py -m cardiffnlp/mt5-small-tweet-topic-multi-en-2022 --datase
|
|
9 |
|
10 |
|
11 |
|
12 |
-
python finetune_t5.py --dataset-name es --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-es --model-organization cardiffnlp --use-auth-token
|
13 |
python finetune_t5.py --dataset-name en --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en --model-organization cardiffnlp --use-auth-token
|
14 |
|
15 |
python finetune_t5.py --dataset-name ja --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-ja --model-organization cardiffnlp --use-auth-token
|
|
|
9 |
|
10 |
|
11 |
|
12 |
+
python finetune_t5.py --dataset-name es --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-es --model-organization cardiffnlp --use-auth-token --skip-train --skip-test
|
13 |
python finetune_t5.py --dataset-name en --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-en --model-organization cardiffnlp --use-auth-token
|
14 |
|
15 |
python finetune_t5.py --dataset-name ja --low-cpu-mem-usage --model-alias mt5-small-tweet-topic-multi-ja --model-organization cardiffnlp --use-auth-token
|
tweet_topic_multilingual.py
CHANGED
@@ -6,7 +6,7 @@ import datasets
|
|
6 |
|
7 |
logger = datasets.logging.get_logger(__name__)
|
8 |
_DESCRIPTION = """[TweetTopicMultilingual](TBA)"""
|
9 |
-
_VERSION = "0.0.
|
10 |
_CITATION = """TBA"""
|
11 |
_HOME_PAGE = "https://cardiffnlp.github.io"
|
12 |
_NAME = "tweet_topic_multilingual"
|
@@ -146,7 +146,7 @@ class TweetTopicMultilingual(datasets.GeneratorBasedBuilder):
|
|
146 |
if type(filepath) is not List:
|
147 |
filepath = [filepath]
|
148 |
for _file in filepath:
|
149 |
-
logger.info("generating examples from = %s",
|
150 |
with open(_file, encoding="utf-8") as f:
|
151 |
_list = [json.loads(i) for i in f.read().split("\n") if len(i) > 0]
|
152 |
for i in _list:
|
|
|
6 |
|
7 |
logger = datasets.logging.get_logger(__name__)
|
8 |
_DESCRIPTION = """[TweetTopicMultilingual](TBA)"""
|
9 |
+
_VERSION = "0.0.8"
|
10 |
_CITATION = """TBA"""
|
11 |
_HOME_PAGE = "https://cardiffnlp.github.io"
|
12 |
_NAME = "tweet_topic_multilingual"
|
|
|
146 |
if type(filepath) is not List:
|
147 |
filepath = [filepath]
|
148 |
for _file in filepath:
|
149 |
+
logger.info("generating examples from = %s", _file)
|
150 |
with open(_file, encoding="utf-8") as f:
|
151 |
_list = [json.loads(i) for i in f.read().split("\n") if len(i) > 0]
|
152 |
for i in _list:
|