DigitalUmuganda / Joeynmt-kin-en

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: July 27 2022

Introduction of Joeynmt-kin-en

Model Details of Joeynmt-kin-en

Kinyarwanda-to-English Machine Translation

This model is a Kinyarwanda-to-English machine translation model, it was built and trained using JoeyNMT framework. The translation model uses transformer encoder-decoder based architecture. It was trained on a 47,211-long English-Kinyarwanda bitext dataset prepared by Digital Umuganda.

Model architecture

Encoder && Decoder

Type: Transformer Num_layer: 6 Num_heads: 8 Embedding_dim: 256 ff_size: 1024 Dropout: 0.1 Layer_norm: post Initializer: xavier Total params: 12563968

Pre-processing
Tokenizer_type: subword-nmt
num_merges: 4000
BPE encoding learned on the bitext, separate vocabularies for each language
Pretokenizer: None
No lowercase applied
Training
Optimizer: Adam
Loss: crossentropy
Epochs: 30
Batch_size: 256
Number of GPUs: 1
Evaluation
Evaluation_metrics: Blue_score, chrf
Tokenization: None
Beam_width: 15
Beam_alpha: 1.0
Tools
* joeyNMT 2.0.0
* datasets
* pandas
* numpy
* transformers
* sentencepiece
* pytorch(with cuda)
* sacrebleu
* protobuf>=3.20.1
How to train

Use the following link for more information

Translation

To install joeyNMT run:

$ git clone https://github.com/joeynmt/joeynmt.git
$ cd joeynmt
$ pip install . -e

Interactive translation(stdin):

$ python -m joeynmt translate args.yaml

File translation:

$ python -m joeynmt translate args.yaml < src_lang.txt > hypothesis_trg_lang.txt
Accuracy measurement

Sacrebleu installation:

$ pip install sacrebleu

Measurement(bleu_score, chrf):

$ sacrebleu reference.tsv -i hypothesis.tsv -m bleu chrf 
To-do
  • Test the model using different datasets including the jw300
  • Use the Digital Umuganda dataset on some available State Of The Art(SOTA) models.
  • Expand the dataset
Result

The following result was obtained using sacrebleu.

Kinyarwanda-to-English:

Blue: 79.87
Chrf: 84.40

Runs of DigitalUmuganda Joeynmt-kin-en on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About Joeynmt-kin-en huggingface.co Model

Joeynmt-kin-en huggingface.co

Joeynmt-kin-en huggingface.co is an AI model on huggingface.co that provides Joeynmt-kin-en's model effect (), which can be used instantly with this DigitalUmuganda Joeynmt-kin-en model. huggingface.co supports a free trial of the Joeynmt-kin-en model, and also provides paid use of the Joeynmt-kin-en. Support call Joeynmt-kin-en model through api, including Node.js, Python, http.

DigitalUmuganda Joeynmt-kin-en online free

Joeynmt-kin-en huggingface.co is an online trial and call api platform, which integrates Joeynmt-kin-en's modeling effects, including api services, and provides a free online trial of Joeynmt-kin-en, you can try Joeynmt-kin-en online for free by clicking the link below.

DigitalUmuganda Joeynmt-kin-en online free url in huggingface.co:

https://huggingface.co/DigitalUmuganda/Joeynmt-kin-en

Joeynmt-kin-en install

Joeynmt-kin-en is an open source model from GitHub that offers a free installation service, and any user can find Joeynmt-kin-en on GitHub to install. At the same time, huggingface.co provides the effect of Joeynmt-kin-en install, users can directly use Joeynmt-kin-en installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Joeynmt-kin-en install url in huggingface.co:

https://huggingface.co/DigitalUmuganda/Joeynmt-kin-en

Url of Joeynmt-kin-en

Provider of Joeynmt-kin-en huggingface.co

DigitalUmuganda
ORGANIZATIONS

Other API from DigitalUmuganda