You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sure I've read this project's Issues of README.
What happened?
I wrote this code: ts.translate_text('hello, how are you?', translator='iflytek', from_language='en', to_language='ar') ts.translate_text('hello, how are you?', translator='niutrans', from_language='en', to_language='ar')
APP Version
5.7.1
Python Version
3.10
Runtime Environment
colab google
Country/Region
Russia
Relevant log output
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-17-bdc31f9ec4ac>in<cell line: 1>()
----> 1 ts.translate_text('hello, how are you?', translator='iflytek', from_language='en', to_language='ar')
3 frames
/usr/local/lib/python3.10/dist-packages/translators/server.py in iflytek_api(self, query_text, from_language, to_language, **kwargs)
2488 time.sleep(sleep_seconds)
2489 self.query_count += 1
-> 2490 return data if is_detail_result else eval(data['data'])['trans_result']['dst']
2491
2492
KeyError: 'data'
KeyError: 'data'
During handling of the above exception, another exception occurred:
TranslatorError Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/translators/server.py](https://localhost:8080/#) in _wrapper(*args, **kwargs)
279 raise_tips2_url = 'https://github.com/UlionTse/translators#supported-translation-services'
280 raise_tips2 = f'Please read for details: Status of Translator on this webpage({raise_tips2_url}).'
--> 281 raise TranslatorError(f'{raise_tips1} {raise_tips2}')
282 return _wrapper
283
TranslatorError: The functioniflytek() has been not certified yet. Please readfor details: Status of Translator on this webpage(https://github.com/UlionTse/translators#supported-translation-services).
KeyError: 'data'
During handling of the above exception, another exception occurred:
TranslatorError Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/translators/server.py](https://localhost:8080/#) in _wrapper(*args, **kwargs)
279 raise_tips2_url = 'https://github.com/UlionTse/translators#supported-translation-services'
280 raise_tips2 = f'Please read for details: Status of Translator on this webpage({raise_tips2_url}).'
--> 281 raise TranslatorError(f'{raise_tips1} {raise_tips2}')
282 return _wrapper
283
TranslatorError: The functionniutrans() has been not certified yet. Please readfor details: Status of Translator on this webpage(https://github.com/UlionTse/translators#supported-translation-services).
now it is clear that:
The function iflytek() has been not certified yet
The function niutrans() has been not certified yet
Hello friend!
Although these functions are implemented, they have not passed the test due to various reasons, and they are in an unavailable status. This status is also marked on the README page.
Debug Tips
What happened?
I wrote this code:
ts.translate_text('hello, how are you?', translator='iflytek', from_language='en', to_language='ar')
ts.translate_text('hello, how are you?', translator='niutrans', from_language='en', to_language='ar')
APP Version
5.7.1
Python Version
3.10
Runtime Environment
colab google
Country/Region
Russia
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: