Easily automate multilingual translations for your projects powered by advanced LLM technology.
Co Op Translator is a tool designed to automate multilingual translations for various projects using advanced Large Language Model (LLM) technology. This project aims to simplify the process of translating content into multiple languages, making it accessible and efficient for developers.
Co Op Translator Python package designed to automate multilingual translations across all files in your project. Powered by advanced Language Learning Models (LLMs), it simplifies the localization process by providing accurate and efficient translations.
Co Op Translator scans all your project files and translates all Markdown documents and even text within images found in your folders. This comprehensive approach ensures that every part of your project is accessible to a global audience.
By integrating Co Op Translator into your workflow, you can:
- Automate Translations: Easily translate text in your project files into multiple languages.
- Comprehensive Coverage: Translate all Markdown files and text within images in your project directories.
- Advanced LLM Technology: Utilize cutting-edge language models for high-quality translations.
- Simplify Localization: Streamline the process of localizing your project for international markets.
- Easy Integration: Seamlessly integrate with your existing project setup.
Co Op Translator empowers developers to focus on core functionalities while effortlessly managing multilingual support.
Here is an example of how Co Op Translator can be used to translate text in images and Markdown files in your project:
- Multilingual Translation: Supports translation into multiple languages, leveraging the power of LLMs.
- Automation: Automates the translation process, reducing manual effort and increasing consistency.
- Integration: Easily integrates with existing projects, providing a seamless translation experience.
You can run this samples virtually by using GitHub Codespaces and no additional settings or setup are required.
The button will open a web-based VS Code instance in your browser:
A related option is VS Code Dev Containers, which will open the project in your local VS Code using the Dev Containers extension:
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- For Windows:
venv\Scripts\activate.bat
- For Mac/Linux:
source venv/bin/activate
- For Windows:
-
Installing Required Packages:
- Install the necessary packages:
pip install -r requirements.txt
- Install the necessary packages:
-
Environment Variables:
- Create an
.env
file in the root directory by copying the provided.env.template
file. - Fill in the environment variables as guided.
- Create an
-
Installing the Package:
- Install the package in editable mode:
pip install -e .
- Install the package in editable mode:
-
Running Tests:
- Ensure the virtual environment is activated and run tests:
pytest tests/
- Ensure the virtual environment is activated and run tests:
- data/: Contains data files.
- notebooks/: Jupyter notebooks for examples and tutorials.
- src/co_op_translator/: Source code for the translator.
- tests/: Test cases for the project.
- Set up Azure resources before starting
- Create an '.env' file in the root directory
- Install the Co Op translator package
- Use Co Op translator in your project
- Azure AI Services resource
- Azure OpenAI resource
- Python 3.10 or higher
Microsoft is committed to helping our customers use our AI products responsibly, sharing our learnings, and building trust-based partnerships through tools like Transparency Notes and Impact Assessments. Many of these resources can be found at https://aka.ms/RAI. Microsoft’s approach to responsible AI is grounded in our AI principles of fairness, reliability and safety, privacy and security, inclusiveness, transparency, and accountability.
Large-scale natural language, image, and speech models - like the ones used in this sample - can potentially behave in ways that are unfair, unreliable, or offensive, in turn causing harms. Please consult the Azure OpenAI service Transparency note to be informed about risks and limitations.
The recommended approach to mitigating these risks is to include a safety system in your architecture that can detect and prevent harmful behavior. Azure AI Content Safety provides an independent layer of protection, able to detect harmful user-generated and AI-generated content in applications and services. Azure AI Content Safety includes text and image APIs that allow you to detect material that is harmful. We also have an interactive Content Safety Studio that allows you to view, explore and try out sample code for detecting harmful content across different modalities. The following quickstart documentation guides you through making requests to the service.
Another aspect to take into account is the overall application performance. With multi-modal and multi-models applications, we consider performance to mean that the system performs as you and your users expect, including not generating harmful outputs. It's important to assess the performance of your overall application using generation quality and risk and safety metrics.
You can evaluate your AI application in your development environment using the prompt flow SDK. Given either a test dataset or a target, your generative AI application generations are quantitatively measured with built-in evaluators or custom evaluators of your choice. To get started with the prompt flow sdk to evaluate your system, you can follow the quickstart guide. Once you execute an evaluation run, you can visualize the results in Azure AI Studio.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.