Skip to content

Easy NLP Translate - A Simple and Efficient Translation Library

This library provides an easy-to-use interface for translating text using both local transformer models and large language models (LLMs) from popular providers. It is designed to simplify the translation process while ensuring high-quality results through careful model evaluation also shown in the documentation.

๐Ÿš€ Features

  • Translation with a local transformer model selected based on our evaluation
  • LLM-Translation using common provider with a custom prompt or based on our prompt library

๐Ÿ“ฆ Installation & Instructions

Install the package from PyPi. It requires Python 3.11 or 3.12:

pip install easy-nlp-translate

๐Ÿ—๏ธ Example Project where easy-nlp-translate gets used

This Repo shows an example project where easy-nlp-translate is used to translate video subtitles. It demonstrates how to integrate the library into a project and utilize its features effectively. The project includes a Streamlit frontend which enables users to upload videos in order to generate subtitles. Those subtitles then get translated using easy-nlp-translate and then saved as SRT files.

๐Ÿงพ License

This project is licensed under the MIT License. See the LICENSE file for details.