We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schemas = json.load(open("./input/schemas.json", "r")) keywords = [line.strip() for line in open("./input/keywords.txt", "r")] result=back_translate("XXX撒", schemas,keywords) print(json.dumps(handle_res(result), indent=4, ensure_ascii=False))
The text was updated successfully, but these errors were encountered:
schema里的每一项都需要两次调用翻译接口。然后因为目前用的是公开破解的翻译接口,所以会有调用频率的限制,每次调用之间会间隔1~2秒,加上翻译的网络延迟,确实会需要几分钟。如果您的需求就是翻译单条数据(而不是批处理)的话,可以尝试把代码中默认的延迟时间改小一些;如果有批处理的需求的话,就只能去使用各个平台的翻译api了
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: