opus-mt-en-to-bn / README.md
shhossain's picture
Update README.md
f37e9cf
|
raw
history blame
1.89 kB
metadata
license: apache-2.0
datasets:
  - opus100
language:
  - bn
  - en
metrics:
  - sacrebleu
pipeline_tag: translation
widget:
  - text: Will you come home tonight?
    example_title: Example 1
  - text: >-
      I am so sorry this is a day late, guys. Unfortunately, my internet was
      down so it was out of my control.
    example_title: Example 2
model-index:
  - name: shhossain/opus-mt-en-to-bn
    results:
      - task:
          type: translation
          name: Translation
        dataset:
          type: opus100
          name: opus100
          split: validation
        metrics:
          - type: Bleu
            value: 12.5374
          - type: Validation Loss
            value: 2.120669
          - type: Training Loss
            value: 1.7712

English-Bengali Translation Model

This model is finetuned on Helsinki-NLP/opus-mt-en-inc for English to Bangla Translation.

  • Developed by: shhossain
  • Model type: [transformer-align]
  • Language(s) (NLP): [English, Bengali]
  • License: [apache-2.0]
  • Finetuned from model [Helsinki-NLP/opus-mt-en-inc]: Helsinki-NLP/opus-mt-en-inc

Use with transformers

from transformers import pipeline

pipe = pipeline("translation", model="shhossain/opus-mt-en-to-bn")

Use with BanglaTranslationKit

BanglaTranslationKit is an open-source translation package for offline conversion between both Bengali and English languages (English to Bangla and Bangla to English)

Installation

pip install bntrans

Usage

You can use this package to translate any Bangla to English or English to Bangla.

from bntrans import Translator

translator = Translator(src="en", dest="bn")
translation = translator.translate("Hello world!")  #  ্যালো বিশ্ব!
print(translation)

More info on BanglaTranslationKit