dl-translate: a python library for text translation between 50 languages using Deep Learning

dl-translate: a python library for text translation between 50 languages using Deep Learning

I'm happy to share the release of my new library called dl-translate, which has been my personal software project for the past few weeks. Before I get started, here are some quick links:

The dl-translate library can be installed with pip and it lets you translate text into one of 50 different languages. This code snippet (derived from the repository's README) gives a concise overview:

No alt text provided for this image

The goal of the project is to make it easier for any Python user to start translating text, without necessarily having been exposed to Deep Learning and Natural Language Processing. For this reason, I also provided utility functions and methods to help you quickly find the language you want to use. For example, if you use an editor like VSCode with Python plugins, then you will be able to leverage the auto-complete feature after you type dlt.lang:

No alt text provided for this image

Although the library is designed to be used in an abstracted way, I wanted to make it useful for advanced Python users and those that are familiar with Deep Learning and NLP (more specifically, transformers). Thus, I included options to customize the underlying deep learning model and tokenizer, as well as access them through getter methods. This is all explained in-depth in the advanced section of the readme and documented in the API reference. Here's a preview:

No alt text provided for this image

If you already know Machine Learning, then I recommend checking out Hugging Face's transformers library and the multilingual BART model (trained on 50 languages), along with the paper behind it.

If you are not familiar with any of this, then I hope that by using this library, you will be encouraged to try out the transformers library and learn more about mBART, both of which helped simplify neural machine translation for the greater ML/Python community.

Abdora7man Dawood

Student at Université Paul Sabatier Toulouse III - Licence Professionnelle Traitement et Contr?le des Matériaux

2 年

Dude, u saved me hours of translating some texts using the google API <3

Zuker Nie Chen

Systems Developer @Duuo by The Co-Operators

3 年

Amazing work!

Jason Chin

Software Engineer at Microsoft

4 年

This is awesome!

回复

要查看或添加评论,请登录

社区洞察

其他会员也浏览了