Skip to main content

Multilingual Text Tooling around Indian Languages

Project description

ilmulti

This repository houses tooling used to create the models on the leaderboard of WAT-Tasks. We provide wrappers to models which are trained via pytorch/fairseq to translate. Installation and usage intructions are provided below.

Installation

The code is tested to work with the fairseq-fork which is branched from v0.7.2 and torch version 1.0.0.

# --user is optional
python3 -m pip install -r requirements.txt --user  
python3 setup.py install --user 

Downloading Models: The script scripts/download-and-setup-models.sh downloads the model and dictionary files required for running examples/mm_all.py. Which models to download can be configured in the script.

A working example using the wrappers in this code can be found in this Colab Notebook.

Usage

from ilmulti.translator import from_pretrained

translator = from_pretrained(tag='mm-all')
sample = translator("The quick brown fox jumps over the lazy dog", tgt_lang='hi')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ilmulti-0.0.0.tar.gz (6.1 MB view details)

Uploaded Source

Built Distribution

ilmulti-0.0.0-py3.6.egg (4.4 MB view details)

Uploaded Source

File details

Details for the file ilmulti-0.0.0.tar.gz.

File metadata

  • Download URL: ilmulti-0.0.0.tar.gz
  • Upload date:
  • Size: 6.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for ilmulti-0.0.0.tar.gz
Algorithm Hash digest
SHA256 65e244291864132c1aa851cf99a775b2709f760f411b2c3e20af3fc296c057b7
MD5 748db773541399a0c880352db230a1dd
BLAKE2b-256 d936e1fe90a670c0d5882f99bc8a4f530b318fdfc9d9217afe64d3df57a7f539

See more details on using hashes here.

File details

Details for the file ilmulti-0.0.0-py3.6.egg.

File metadata

  • Download URL: ilmulti-0.0.0-py3.6.egg
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for ilmulti-0.0.0-py3.6.egg
Algorithm Hash digest
SHA256 7ec6bbd31f7dc2cab3bad3b3a41ae3fa2f0b98568ab9477bd05465711f3fba1a
MD5 678346a7ef641744034e7ff4676ed630
BLAKE2b-256 a51d6982309cef327fa00ceedfb5453452f8e570e0c75cc07cf4e80109fe644d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page