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:

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 pandas as pd
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, source_language="en", target_language="es", column_name="text_column")

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

For more examples check the folder "test_codes"

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.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for unlimited_machine_translator-1.1.0.tar.gz
Algorithm Hash digest
SHA256 68636dd33bb492e20764d2b0e8a03ab6c75983770c6adfff76723ab4eafbdd22
MD5 11159d9eae02faea7fbd86e1e6910d95
BLAKE2b-256 5441c4aceafee35f7f0913cf6e96c9e75cd1cd2f5b23ae0b7c6f6091fab92ed5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unlimited_machine_translator-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32972730bb391e1d1dd1d4e9720bea12cbe14c8b4b7589096ec5daad356295ef
MD5 aef25983c612d733529a31c683661130
BLAKE2b-256 4205f386e90e9384794717560dd48de801133879a1a80765ce95c98e51b66982

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