lushan88a / google_trans_new

A free and unlimited python API for google translate.
MIT License
395 stars 171 forks source link

translate result is wrong comparing to the google translate website #49

Open braindevices opened 3 years ago

braindevices commented 3 years ago

the class return very wrong translation:

translator.translate("Department of Otolaryngology, Head and Neck Surgery, PLA General Hospital, Beijing", lang_tgt="zh")
'北京广场综肠耳科,头部和颈部手术部 '

But the https://translate.google.com returns correct value 北京解放军总医院耳鼻喉头颈外科

hipoglucido commented 3 years ago

I also spotted this issue. The translations given by the repository are of lower quality than those of the official browser google translate app. Maybe the repository is hitting a google endpoint which is outdated? It is a pity because sometimes the translations are really bad.

yanyanbb commented 3 years ago

Is there any progress on this issue?

lexvieira commented 3 years ago

Hey Guys, I'm with the same issue here. Some translations from English to Polish for example and the API returns basically a translation without context or not based in expressions.

I'm not really into sweets! = Polish: Nie jestem naprawdę słodycze! On google translator website = nie przepadam za słodyczami

I was thinking that was the option of use the Pronounce, but it is not.

FlyingYanglu commented 1 year ago

I found an explanation on StackOverflow. Basically, the website has a google auto-correct service, which provides a suggested input to the translation app rather than your input.