Translation
Transformers
Safetensors
Vietnamese
mu
mt5
text2text-generation
library_name
Vietnamese
Muong
Instructions to use mr4/trans-mu-vi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mr4/trans-mu-vi with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="mr4/trans-mu-vi")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("mr4/trans-mu-vi") model = AutoModelForSeq2SeqLM.from_pretrained("mr4/trans-mu-vi") - Notebooks
- Google Colab
- Kaggle
Dịch từ tiếng Mường sang tiếng Việt phổ thông
Model description
Model có tác dụng dịch từ tiếng Mường sang tiếng Việt phổ thông.
Ví dụ:
Ủn cha̒w tưở da̭.
Em chào anh ạ
Base model
Mô hình được đạo tạo dựa trên cơ sở của model MT5-SMALL
Training data
Mô hình được đào tạo dựa trên dữ liệu được thu thập bởi 132.one, hiện chưa được publish do 1 số vấn đề tế nhị.
Model variations
Chưa xác định
Intended uses & limitations
Chưa xác định
License
Đây là một open-source library, bạn có thể sử dụng nó với bất kì mục đích nào. Rất cảm ơn nếu bạn ghi nguồn khi sử dụng mô hình này (nếu không ghi cũng không sao).
How to use
model = 'mr4/trans-mu-vi'
tokenizer = MT5Tokenizer.from_pretrained(model)
model = MT5ForConditionalGeneration.from_pretrained(model)
text = "Ủn cha̒w tưở da̭."
inputs = tokenizer(text, return_tensors="pt", max_length=512, padding=True, truncation=True)
translated = model.generate(**inputs)
translated_text = tokenizer.decode(translated[0], skip_special_tokens=True)
print(translated_text)
Liên hệ
Mọi thông tin liên quan có thể liên hệ qua email: zZz4everzZz@live.co.uk.
- Downloads last month
- 3