Google Cloud Translate via Web Enrichment Transform

paul_balaspaul_balas Member Posts: 11 Contributor I
Hi, 

I am attempting to translate spanish and indonesian languages to english via google translate api.  I am using the example posted on this board to by using the following url:

*** I split this apart as Raidminer thinks I'm posting a nefarious link... ****

   translation . googleapis . com / language / translate / v2 / detect?key=mykey


I have a 'Read Database' query that get's the data I need.  I named the field with the text to be translated as 'ActionDesc'.
I have set the following on the 'Enrich Data by Webservice' control:
 query type  = JasonPath
 attribute type = nominal
  jsonpath queries with attribute name = ActionDescTrans and query expression as $..translatedText
  request method = POST
  service method = foo
  body = 
            {
             'q': '<%ActionDesc%>',
             'target': 'en',
             'format': 'text'
              }
   request properties = property = ActionDesc  value = ActionDesc

The process runs and returns my 10 rows I expect, but the ActionDescTrans field just has '?"

Any suggestions would be helpful.

TIA,

Paul

sgenzer

Best Answer

Answers

  • kaymankayman Member Posts: 312   Unicorn
    Could you share your process, but ensure to comment out your key? 
    That would make it easier to troubleshoot
Sign In or Register to comment.