Downloads · 30 days
0
0% of all-time downloads
gamallo/translator-gl-zh
translator-gl-zh is a machine learning model from gamallo. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
1
Public
Repo size
284 MB
Likes
0
Public
Click a slice to open those files.
.bin284 MB · 100%
From the Hugging Face model README
How to translate with this model
pip install ctranslate2~=3.20.0
pip install subword-nmt
subword-nmt apply-bpe -c gl-detok10k.code < input_file.txt > input_file_bpe.txt
python3 trans_ct2.py ct2_detok-gl-zh input_file_bpe.txt >output_file_bpe.txt
cat out_test_bpe.txt | sed "s/@@ //g" > output_file.txt
Acknowledgments
Thanks to Tang Waying, Zheng Jie and Wang Tianjiao for helping prepare the parallel corpora.