Closed dumitrescustefan closed 2 years ago
Reading already closed issues I see that you suggest using a separator that could be recovered from the translation. That could work. Still, I'm getting errors with sentences > 1000 lines for sogou for example, and google randomly seems to fail (one sentence per time).
So the question is: could a html table be used for "bulk" translation better than a single, long (e.g. 1000 chars) custom delimited string?
Thanks!
@dumitrescustefan ImportError: sys.meta_path is None, Python is likely shutting down
. Regarding this, I've fixed it, the bug was caused by the multiprocessing not being closed explicitly. Regarding the bulk translation towards html you said(translate_html()
), it is multi-process. For each translator, not only one sentence can be translated, but generally 5000 words can be translated. There is also your crazy idea, please be kind to the free service, and don't request it in large quantities quickly, because you will be blocked from IP and can no longer request translation services.
@dumitrescustefan pip install translators --upgrade
, If there are still problems or errors, can you provide more information? Such as python version, runtime environment, etc. Thx.
@dumitrescustefan Maybe you are talking about this problem #15 , the only way to solve it is to multi-process. But by the way, pay attention to the frequency of requests.
Thank you very much for the response, I will look into it. I did install the latest version of translators, the environment is an Ubuntu 20.04 with python 3.8. I will close the issue and will reopen it if needed. Again, thanks for your quick response!
Hi!
Is there an option for bulk translation (i.e. 100 sentences at a time)?
I tried to fake it with a custom html page with a table and one sentence per line, but the example itself is not working:
fails with :