Downloads · 30 days
23
20% of all-time downloads
hsilvosa/hsc-wuxia-marianmt-zh-en
hsc-wuxia-marianmt-zh-en is a translation model from hsilvosa. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as cc-by-4.0.
This model is a fine-tuned sequence-to-sequence model based on Helsinki-NLP/opus-mt-zh-en for Chinese-to-English translation of Wuxia and Xianxia literature. It was developed as part of the Bachelor's Thesis (TFG): "E…
Downloads · 30 days
23
20% of all-time downloads
All-time downloads
117
Public
Parameters
77.5M
312 MB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors310 MB · 99%
From the Hugging Face model README
This model is a fine-tuned sequence-to-sequence model based on Helsinki-NLP/opus-mt-zh-en for Chinese-to-English translation of Wuxia and Xianxia literature. It was developed as part of the Bachelor's Thesis (TFG):
"Enfoques de traducción automática con modelos de lenguaje en obras wuxia" (Degree in Data Science and Engineering, Universidade da Coruña)
This model can be used directly for Chinese-to-English translation of literary text in the Wuxia domain.
from transformers import MarianMTModel, MarianTokenizer
model_name = "HSilvosa/hsc-wuxia-marianmt-zh-en"
model = MarianMTModel.from_pretrained(model_name)
tokenizer = MarianTokenizer.from_pretrained(model_name)
text = "一念成沧海,一念化桑田。"
inputs = tokenizer(text, return_tensors="pt")
generated_tokens = model.generate(**inputs)
print(tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)[0])
The model was evaluated on the Wuxia parallel test set, comparing the base model and the fine-tuned version:
| Metric | Base Model (opus-mt-zh-en) | Fine-tuned Model (hsc-wuxia-marianmt-zh-en) | Delta (Improvement) |
|---|---|---|---|
| SacreBLEU | 5.12 | 28.39 | +23.27 |
| chrF | 23.56 | 50.02 | +26.46 |
| ROUGE-L | 27.80 | 57.40 | +29.60 |
| METEOR | 23.71 | 56.55 | +32.84 |
| COMET | 59.06 | 77.57 | +18.51 |
The model was fine-tuned using the following architectural training parameters:
This model and the associated training/evaluation pipelines were developed in the following project repository: