Increasing maximum character limit per request
-
Wednesday, January 11, 2012 4:06 AMHi,
Is there a way for developers to submit a large text to be translated by Microsoft Translator? The problem I am having at the moment is I am trying to translate an html page that has roughly 20k characters. When I tried to use the translator API using SOAP it gave me an error response saying that the maximum characters allowed was 10240 characters.
I had tried several workarounds by breaking the content to lesser characters (up to 3000 characters only), but another problem surfaced in the area of the accuracy of the translated result. What I mean is say I have this massive text about 10k characters and I broke it up to 3 chunks of roughly 3000 characters each. One of the chunk ended up with an unclosed html tags, eg. <div><ul><li>test. When this chunk is translated the returned result will automatically enclosed the html tags (i.e. <div><ul><li>test</li></ul></div>) which exactly where the problem is since I do not want
it to be enclosed as the content is yet to be continued.
If it is not possible to increase the maximum character limit per request then is it possible to turn off this auto html tag completion feature in this
microsoft translator?
Thank you in advance for your help.
All Replies
-
Monday, January 30, 2012 5:19 AMOwner
Hi Nick,
the maximum size of a request is 10000 characters. Any text bigger than that needs to be split into multiple requests. When translating HTML, the input needs to be well-formed and complete. You will want to walk the document down to the individual <p> element and translate them one by one, or using the TranslateArray() method to translate several <P>s at once.
Chris Wendt
Microsoft Translator- Marked As Answer by Chris WendtMicrosoft Employee, Owner Monday, January 30, 2012 5:19 AM