Build language translator with 3 lines of python code

preview_player
Показать описание
In just 3 lines of python code you can translate a statement from one language to another. I will show you how in this video.

#️⃣ Social Media #️⃣

❗❗ DISCLAIMER: All opinions expressed in this video are of my own and not that of my employers'.
Рекомендации по теме
Комментарии
Автор

from translate import Translator translator= Translator(from_lang="english", to_lang="hindi") translation =
print translation

saisumanth
Автор

Thank you. I watched thousands of tutorials looking for this answer, but you were the one who told me the issue with google Translate( 0:37 )

ukii
Автор

I'm getting this error please help me sir.
Listening...
Recognizing...
User said: translate hello

'NoneType' object has no attribute 'group'


Code:elif 'translate' in query:
try:
speak('translating your sentences or
query=query.replace("translate", " ")
translator =Translator()
result=translator.translate(query, dest='hi')
speak('according the google translate')
print(result.pronunciation)
speak(result.pronunciation)


except Exception as e:
print(e)
speak("try with the another sentences or try after sometime")

montezmusic
Автор

For anyone getting the error “cannot import name ‘NoReturn’” make sure you are using python 3.6.2 or above, I was originally using 3.6.0 and kept getting that but after uninstalling and using 3.6.2 instead, it works perfectly

Old_SDC
Автор

Could you please do a video on how to translate a dataframe? Thanks!

fatimaelmansouri
Автор

Thank you SO MUCH for this!!! Way simpler than I thought. Now to figure out how to implement this into a bigger project haha

brandicook
Автор

Amazing, how great is python and accompanying libraries/packages that allow us to use these powerful tool so simply.

umadchet
Автор

it shows
'NoneType' object has no attribute 'group'
this error ..can anyone tell me why?

kryptonitegamer
Автор

My first translator was easy:

Translate = {
"hello":"hallo",
"good":"gut",
}
t = input().lower()
print(Translate[t])

MScienceCat
Автор

Wow sir this is an amazing 3 line code. And how did you did that with baby yoda. That was awesome👏😊.

RestartUPSC
Автор

Interesting lesson. Thanks! How do you create a language translator to add new languages that aren't on google translator? For example a rare language like: Runyankole or something like that. Looking forward to your feedback.

MusicalMetamorphosis-
Автор

Clicked on abo because of your "I love baby yoda part" 😂 Made my day😊
(and I really do NOT like that not ending star wars... !!)

dem
Автор

i can tell you are a hardcore gamer nice

hritiktheopgamer
Автор

for those who are getting error, upgrade the library to its latest version. 4.0.0

soumilyade
Автор

Yes one just has to Love baby yoda 😂, thanks for great video!🙂

ruachaladams
Автор

Wow man you're great...i am just looking at the fact that people are not taking interest in your videos...btw i have just watched you entire playlist 😂😂.... Can we meet someday...

varckat
Автор

Facing AttributeError: 'NoneType' object has no attribute 'group'. Could you please help to solve the error

ashwinbj
Автор

Thank you so much sir😍 i like the way you explain the concepts. It's a straightforward and easy to understand 😉

deepakrevidagar
Автор

Very good
Could you add a list with multiple items too?

roneygalan
Автор

this is really helpful and informative, thanks a lot for such informative videos.

tariqulislam