Sending large HTML document for translation
I know the API has 10000 character limit when the HTML doc is sent. I am using node.js client to send a GET request to /v2/Http.svc/Translate endpoint and if it's large, I get request URL is too large.
My question is how are we supposed to translate large HTML documents? One way I can think of is to chunk the HTML document into pieces and send the chunk and stitch them together. As you can imagine, chunking HTML document because of its very nature is not an easy problem!
I feel like this should be a common problem and I was wondering how to solve this? I could not find anything useful online.
Thanks for the help.
Use the Document Translator app: http://github.com/microsofttranslator/documenttranslator/releases. Source code provided so you can embed in your own apps. It uses the HTML Agility Toolkit.