A package for unlimited machine translation
Project description
Unlimited Machine 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 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 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
Built Distribution
File details
Details for the file unlimited_machine_translator-1.1.1.tar.gz
.
File metadata
- Download URL: unlimited_machine_translator-1.1.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60332ed46ce21932a464a1e167fd33a250a94a8ca75f71d1d13783341f19634f |
|
MD5 | 36565d540d6a68a78fc31a53b4fb759e |
|
BLAKE2b-256 | fef2a8649b7a5f665c5a5952f8cbb89a549d24a613f40eae16cbd7a60c78d47f |
File details
Details for the file unlimited_machine_translator-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: unlimited_machine_translator-1.1.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f96f0bee6f4905d8437a378310a0d88817e5d0f2f4993ab9648bb682d36ea73 |
|
MD5 | 5ea288b786acfca3fa5cb4eb8185ce59 |
|
BLAKE2b-256 | 8b9f89b89614906b4936d3362668a43bca764e32b620e571fa943b804eee355d |