This is so it can output Traditional Chinese by default and make the translations more natural sounding.
Model description
input: English text only
output: Traditional Chinese text translation
How to use:
from transformers import pipeline
model_checkpoint = "agentlans/en-zhtw"
translator = pipeline("translation", model=model_checkpoint)
translator(
[
"Even if you spend a day in Windsor you'll notice that it's a very multicultural city, yet still retaining a small town feel.",
"Its main waterfront park stretches about 5 km (3.1 mi), from the 1929 Ambassador suspension bridge past the contemporary Windsor Sculpture Park.",
]
)
# [{'translation_text': '儘管在風沙住了一天,都會發現這裡是個非常多樣化的城市,但還是保留了一個小鎮的感覺。'}, {'translation_text': '從 1929 年的大使吊橋到今天的風雕公園,總長約 5 公里。'}]
Intended uses & limitations
English to Traditional Chinese translation
Single sentence
Limitations: may hallucinate or omit information, doesn't understand context, can still sound awkward or strange (as the above example shows)
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
learning_rate: 5e-05
train_batch_size: 8
eval_batch_size: 8
seed: 42
optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
lr_scheduler_type: linear
num_epochs: 3.0
Framework versions
Transformers 4.43.3
Pytorch 2.3.0+cu121
Datasets 2.20.0
Tokenizers 0.19.1
Runs of agentlans en-zhtw on huggingface.co
39
Total runs
1
24-hour runs
-3
3-day runs
-5
7-day runs
7
30-day runs
More Information About en-zhtw huggingface.co Model
en-zhtw huggingface.co is an AI model on huggingface.co that provides en-zhtw's model effect (), which can be used instantly with this agentlans en-zhtw model. huggingface.co supports a free trial of the en-zhtw model, and also provides paid use of the en-zhtw. Support call en-zhtw model through api, including Node.js, Python, http.
en-zhtw huggingface.co is an online trial and call api platform, which integrates en-zhtw's modeling effects, including api services, and provides a free online trial of en-zhtw, you can try en-zhtw online for free by clicking the link below.
agentlans en-zhtw online free url in huggingface.co:
en-zhtw is an open source model from GitHub that offers a free installation service, and any user can find en-zhtw on GitHub to install. At the same time, huggingface.co provides the effect of en-zhtw install, users can directly use en-zhtw installed effect in huggingface.co for debugging and trial. It also supports api for free installation.