Skip to main content

Text Translator

This project provide a python package along with pre-trained models to perform machine translation on text

Getting Started

Below instructions will get you a copy of the project up and running your local machine for development and testing purposes.

Prerequisites

python>=3.6

Installing

pip install text-translator

Usage

  1. Loading Library

    from translator import Translator
    translator = Translator()
    
  2. Model Loading(Pretrained models for multiple language conversion can be found here)

    translator.load_model(MODEL_PATH)
    
  3. Prediction

    translator.translate("What is your name?")  
    आपका नाम क्या है?
    
    translator.translate(["What is your name?","What is your age?"])
    आपका नाम क्या है?
    आपकी उम्र क्या है?
    

Pretrained Models

Authors

License

This project is licensed under the Apache License - see the LICENSE.md file for details

Acknowledgments

Metadata

Release files for text-translator 1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for text-translator 1.5
File Size Uploaded Provenance Actions
text-translator-1.5.tar.gz 3.5 kB Without provenance Details for text-translator-1.5.tar.gz

Release files / text-translator-1.5.tar.gz

Download URL text-translator-1.5.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
20cd7886fe3b83f084608f5a80b30316e77bbda81f34b540824ec871aa7117ce
BLAKE2b-256 checksum
How to use checksums
1bbbe4d09125cba7100df3d2d408ec9a178f27c26ec31c0bdbfe3e301560603c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3

Security for text-translator 1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page