翻译大量文本数据的最佳方法是什么? [英] What is the best way to translate a big amount of text data?
问题描述
我有很多文本数据,想将其翻译成不同的语言.
I have a lot of text data and want to translate it to different languages.
我知道的可能方法:
- Google Translate API
- Bing Translator API
问题是所有这些服务都存在文本长度、调用次数等限制,使用起来不方便.
The problem is that all these services have limitations on text length, number of calls, etc. which makes them inconvenient in use.
在这种情况下,您可以建议使用哪些服务/方式?
What services / ways you could advice to use in this case?
推荐答案
在将语言翻译与 XMPP 聊天服务器.我将我的有效载荷(我需要翻译的文本)分割成更小的完整句子子集.
I had to solve the same problem when integrating language translation with an XMPP chat server. I partitioned my payload (the text I needed to translate) into smaller subsets of complete sentences.
我不记得确切的数字了,但是使用 Google 的基于 REST 的翻译 URL, 我翻译了一组完整的句子,总共少于(或等于)1024 个字符,所以一个大段落会导致多次翻译服务调用.
I can’t recall the exact number, but with Google's REST-based translation URL, I translated a set of completed sentences that collectively had a total of less than (or equal to) 1024 characters, so a large paragraph would result in multiple translation service calls.
这篇关于翻译大量文本数据的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!