Closed GingerNg closed 1 year ago
Hello, I saw your error logs, please provide what your input and your source code, so that we can repeat and solve the problem.
Hello, I am experiencing a similar issue when I run the follow code
import translators as ts
ts.translate_text('good',to_language='fr')
It often works with google translator but I am not sure what is the issue with bing
@Aakashagr Bro, this is caused by the masculine and feminine of the French word, bing
's output at this time is html, not the regular json data, so it is recommended that you translate the sentence, not the word.
@UlionTse, this issue occurs even with the sentence.. Try this out
ts.translate_text('The mall is crowded with shoppers on weekends.',to_language = 'fr')
@Aakashagr
But why can't the output be any one of the two sentences instead of showing an error
Prefer to translate which one, masculine or feminine?
Let's say Masculine.
On Tue, 3 Oct 2023 at 17:11, UlionTse @.***> wrote:
Prefer to translate which one, masculine or feminine?
— Reply to this email directly, view it on GitHub https://github.com/UlionTse/translators/issues/122#issuecomment-1745180646, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCY3UMVTFMS2O7R4UOACCLX5QTITAVCNFSM6AAAAAAXKUR5J2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBVGE4DANRUGY . You are receiving this because you were mentioned.Message ID: @.***>
Okay.
@Aakashagr Bro, please pip install --upgrade translators==5.8.6
.
@UlionTse, thanks bro. This version works perfectly
@Aakashagr You are welcome.
Debug Tips
What happened?
A bug happened! python3.8.10
APP Version
0.0.1(example)
Python Version
Runtime Environment
Linux Ubuntu
Country/Region
China
Relevant log output
Screenshots
Code of Conduct