I am trying to convert hinglish dataset to english using python

1.2k Views Asked by At

for i in range(10300): sentence = df["tweet"][i] translations = translator.translate(sentence.encode('unicode-escape').decode('ASCII'), dest='en')

The error i am getting while executing

1

There are 1 best solutions below

2
Ashish Jain On

Here is a solution based on keras-transformers: Ref: PyPI

The env.yml file for creating a conda environment is this: env.yml on GitHub

The manually labeled dataset for Hinglish to English translation is available here:

Dataset on GitHub

And, the Jupyter Notebook with code is here: Jupyter Notebook on GitHub

Here is a blog post for performance report of the same code tested on my laptop: Hinglish to English Machine Translation Using Transformers