Skip to main content

A package for unlimited machine translation

Project description

Unlimited Machine Translator

Latest Release License Powered by deep-translator

Translate all your data frame and doc files without restrictions! The Unlimited Machine Translator is a Python package that makes it easy to translate large datasets using Google Translate API. Powered by deep-translator. The unlimited_machine_translation package offers automatic language detection and removes translation limits by processing data in batches.

Installation

To install the Unlimited Machine Translator, run the following command:

  1. Install from PyPI:
pip install unlimited-machine-translator
  1. Install the latest version from the GitHub repository:
pip install git+https://github.com/Axel-Vs/unlimited_machine_translator.git

Features

  • Translate entire data frames with ease
  • Supports multiple translation APIs
  • Handles API limitations and restrictions by translating data in batches
  • Automatic language detection
  • Easily extendable to support new translation services

Usage

After installing the package, you can use it in your Python scripts or Jupyter notebooks like this:

import os
import pandas as pd
from deep_translator import GoogleTranslator
from unlimited_machine_translator.translator import machine_translator_df

# Load your dataset
data = pd.read_csv("your_dataset.csv")

# Translate the desired column
translated_data = machine_translator_df(data_set=data, column_name="text_column", target_language="en", 
                                        source_language='auto', Translator=GoogleTranslator, 
                                        current_wd=os.getcwd())

# Save the translated data
translated_data.to_csv("translated_dataset.csv", index=False)

For additional examples and use cases, please refer to the "test_codes" directory in the repository.

Supported Translation APIs

Currently, the Unlimited Machine Translator primarily supports Google Translate API. In the future, it will be extended to support other translation services, such as:

  • DeepL Translator
  • Microsoft Translator
  • Yandex.Translate

To use a different translation service, you can easily extend the package by implementing a new translator class that inherits from the base Translator class.

Contributions

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue on the https://github.com/Axel-Vs/unlimited_machine_translator.

License

This project is licensed under the MIT License. For more information, see the LICENSE file.

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

unlimited_machine_translator-1.1.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file unlimited_machine_translator-1.1.2.tar.gz.

File metadata

File hashes

Hashes for unlimited_machine_translator-1.1.2.tar.gz
Algorithm Hash digest
SHA256 e301cc1de704c1e4bb0c6b1beb7e70b2f0970d73d0c03c7732e5fdf7df381a49
MD5 8b4b94b44eebc09665956186209e5955
BLAKE2b-256 b305651237c521167180e6761a3f82da47ec546a88099658f69b24b77f39e69d

See more details on using hashes here.

File details

Details for the file unlimited_machine_translator-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for unlimited_machine_translator-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49d78c260705ec31f2b5675fb25247ee07ab08bbdde134d56cafb45623538d9d
MD5 809510d8a828f7bca3f207a22abe9fa0
BLAKE2b-256 9891245d00e5005333e4293e4f95d3d2576de0c8bb463a945a4bcf10d74b979d

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