Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: scholar.google
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.5%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: hgilles06
  • License: mit
  • Language: Python
  • Default Branch: master
  • Size: 85 KB
Statistics
  • Stars: 7
  • Watchers: 1
  • Forks: 4
  • Open Issues: 0
  • Releases: 0
Created over 4 years ago · Last pushed about 4 years ago
Metadata Files
Readme Citation

README.md

AfroTranslate

This package allows you to obtain translations from Masakhane JoeyNMT based models with very few lines of code. Masakhane is a grassroots research community aiming to revive and strengthen African languages through AI.

Available models can be found here.

Note: Please, install the cuda supported version of pytorch to use the GPU. Ex: pip install torch==1.8.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html.

Here are some useful links:

Masakhane: Visit the Masakhane home page.

Masakhane web: Get translations using the Masakhane web application.

Masakhane Github: Take a look at the community main projects here!

JoeyNMT Github: Get hands on JoeyNMT here!

Test it right now on Colab!

Installation

pip install AfroTranslate

Example:

Translation using the English to Fon model

``` from afrotranslate import MasakhaneTranslate

translator = MasakhaneTranslate(model_name="en-fon")

translator.translate("I love you so much!", n_best=1)

'Un yí wǎn nú we tawun' ```

Loading a model from specified directory

translator = MasakhaneTranslate(model_path="<directory-where-your-model-resides>")

Translating several sentences at once

The models are trained on individual sentences, so we automatically detect sentence boundaries in inputs and translate them separately. The output shows alternatives for each of them.

``` translator.translate("I love you so much! Our love is very strong!", n_best=1)

{'Sentence1': 'Un yí wǎn nú we tawun', 'Sentence2': 'Wanyiyi mǐtɔn ɖò taji tawun'} ```

Disclaimer

This is a community research project and as such, this service is not a production system. The models are only trained using religious data. Therefore, it should not be used for official translations.

Acknowledgement

I want to thank Julia Kreutzer for her precious feedback on this work.

Owner

  • Name: Gilles HACHEME
  • Login: hgilles06
  • Kind: user
  • Location: France
  • Company: Ai4Innov

A passionate of Machine learning and statistics!

Citation (CITATION.cff)

cff-version: 0.0.5
message: "If you use this software, please cite it as below."
authors:
- family-names: "Hacheme"
  given-names: "Gilles"
  openreview: "https://openreview.net/profile?id=~Gilles_HACHEME1"
title: "AfroTranslate"
version: 0.0.5
date-released: 2022-01-08
url: "https://github.com/hgilles06/AfroTranslate"

GitHub Events

Total
Last Year

Committers

Last synced: about 3 years ago

All Time
  • Total Commits: 7
  • Total Committers: 2
  • Avg Commits per committer: 3.5
  • Development Distribution Score (DDS): 0.143
Top Committers
Name Email Commits
Gilles HACHEME h****6@g****m 6
Alp a****p@c****t 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 0
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: about 4 hours
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • alpoktem (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 63 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 6
  • Total maintainers: 1
pypi.org: afrotranslate

This package allows you to obtain translations from Masakhane JoeyNMT based models. Masakhane is a grassroots research community aiming to revive and strengthen African languages through AI.

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 63 Last month
Rankings
Dependent packages count: 10.1%
Forks count: 15.4%
Stargazers count: 19.4%
Downloads: 24.0%
Average: 27.2%
Dependent repos count: 67.2%
Maintainers (1)
Last synced: 7 months ago

Dependencies

setup.py pypi
  • googledrivedownloader ==0.4
  • joeynmt ==1.3
  • spacy ==3.2.1
src/AfroTranslate.egg-info/requires.txt pypi
  • googledrivedownloader ==0.4
  • joeynmt ==1.3
  • spacy ==3.2.1