result.extra_data['possible-mistakes'] returns error
leorbachar1 opened this issue · 1 comments
leorbachar1 commented
Googletrans version:
- [x ] 4.0.0rc1
- 3.1.0a0
- 3.0.0
- 2.x
I'm submitting a ...
- [x ] bug report
- feature request
Current behavior:
Attempting to obtain the data from result.extra_data (which I understand I can use to obtain google's suggested correction to submitted text)
---Found This Code---
from googletrans import Translator
translator = Translator()
result= translator.translate("testin if this works",src="en", dest='fr')
result.extra_data['possible-mistakes']
when I run it...I get..
Exception has occurred: KeyError
'possible-mistakes'
File "C:\Users\leorb\Documents\Python\scrachpad2.py", line 6, in
result.extra_data['possible-mistakes']
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
KeyError: 'possible-mistakes'
Can you please let me know what I do wrong?
Thank you
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.