Downloads · 30 days
0
samiulhaq/iwslt-bt-en-ur
iwslt-bt-en-ur is a translation model from samiulhaq. Use it when you need text moved from one language to another. It is set up for fairseq. The card lists the license as apache-2.0.
English to Urdu translation model is a Transformer model trained on IWSLT back-translated data using Faireq. This model is produced during the experimentation related to building Context-Aware NMT models for low-resou…
Downloads · 30 days
0
Access
Public
Updated Jan 16, 2023
Repo size
1.1 GB
Likes
1
Public
Click a slice to open those files.
.pt1.1 GB · 100%
From the Hugging Face model README
English to Urdu translation model is a Transformer model trained on IWSLT back-translated data using Faireq. This model is produced during the experimentation related to building Context-Aware NMT models for low-resourced languages such as Urdu, Hindi, Sindhi, Pashtu and Punjabi. This particular model does not contains any contextual information and it is baseline sentence-level transformer model. The evaluation is done on WMT2017 standard test set.
source group: English
target group: Urdu
model: transformer
Contextual
Test Set: WMT2017
pre-processing: Moses + Indic Tokenizer
Dataset + Libray Details: DLNMT
| testset | BLEU |
|---|---|
| Wmt2017 | 57.95 |
git clone https://huggingface.co/samiulhaq/iwslt-bt-en-ur
from fairseq.models.transformer import TransformerModel
model = TransformerModel.from_pretrained('path/to/model')
model.eval()
input_text = 'Hello, how are you?'
output_text = model.translate(input_text)
print(output_text)