1 RRS feed

All replies

  • Please, can anyone help translating the following strings using Bing Translation API's GetTranslationsArray() method?

    "FTP Manager makes it easy to schedule and automate your file transfers.  Using FTP Manager you can easily establish a connection to any FTP server and specify action rules that automate the file transfer process."

    If i try to translate the string then a SoapHeaderException is received as follows:
    ArgumentException: Multiple sentences not supported.
    Parameter name: Texts : ID=3743.V2_Soap.GetTranslationsArray.DDB3A31

       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at BingTranslationService.SoapService.GetTranslationsArray(String appId, String[] texts, String from, String to, Int32 maxTranslations, Boolean maxTranslationsSpecified, TranslateOptions options)

    I split this string using the regular expression: (?<=['""A-Za-z0-9][\.\!\?\.&nbsp;])\s+(?=[A-Z]) and then send the ouput of this split as an input to the GetTranslationsArray().

    I am trying to avoid the BreakSentences() of Bing Translation API and so want to create the sentences manually.  Does anyone know how Bing might be creating sentences from a given paraghraph?

    Any help would be appreciated.

    Wednesday, January 5, 2011 1:32 AM
  • Can you tell me your intent of your application. For example, does it intend to "Translate" a sentence or intend to "Get a Custom Translation" users contributed to our repository?

    If it is the former, you should use the "Translate" or "TranslateArrays" operation which accepts arbitrary text input (e.g. a paragraph) and return a single transltion. GetTranslationArrays is used to get custom translations which are contributed by the community which accepts a single sentence as the input. It may return more than one results depending on the contribution.

    Friday, February 11, 2011 1:02 AM