Questions tagged [google-language-api]

Google Translate is a tool that automatically translates text from one language to another language (e.g. French to English). You can use the Google Translate API to programmatically translate text in your webpages or apps.

Google Translate is a tool that automatically translates text from one language to another language (e.g. French to English). You can use the Google Translate API to programmatically translate text in your webpages or apps.

Here is more information about the Google Translate API.

25 questions
7
votes
1 answer

Google Natural Language API with Java - setLanguage

I am using the Google Natural Language API to analyze entities from different texts. Is there a way to change the language of the input text to, for example english, as it is the case with the AlchemyAPI with service.setLanguage…
sp0030
  • 109
  • 1
  • 6
5
votes
0 answers

Google Natural Language API Java LanguageServiceClient how to use api key

I am trying to categorize texts by using the google Language API with the provided Java client. The code is in Scala and it looks like this: val language = LanguageServiceClient.create() val doc =…
5
votes
3 answers

Why is google natural language returning an incorrect beginOffset for analyzed string?

I am using google-cloud/language api to make an #annotate call and analyze entities and sentiments from a csv of comments which I have taken from various online resources. To begin with, the string I am trying to analyze includes commentId's so I…
3
votes
1 answer

Batch translating with Google Language API

I am trying to utilize Google's AJAX Language API to translate each value in an array. for(var n=0; n < mytext.length; n++) { google.language.translate(mytext[n], originalLanguage, newLanguage, function(result){ if(!result.error){ …
mojojojo
  • 57
  • 6
2
votes
0 answers

Using speech to text with googlelanguageR produces NULL transcripts

I'm using the R package 'googleLanguageR' to transcribe various 30 second audio files (over 500 so want to automatize this). I've followed all the steps in the googleLanguageR tutorials, got my key, and authenticated through R. I'm able to…
op4
  • 51
  • 1
  • 7
2
votes
1 answer

Creating a foreign language on-screen keyboard for CKEditor

I am using CKEditor as a rich text WYSIWYG Javascript editor. I would like to add an on-screen keyboard so that they can easily enter text from non-English alphabets. I was planning on finding a JavaScript on-screen keyboard and adding a custom…
Adam
  • 43,763
  • 16
  • 104
  • 144
2
votes
1 answer

How to call Google Cloud API using RestSharp and OAuth 2

I'm trying to call the google cloud API. Specifically, the language API from c# using the RestSharp library and OAuth 2. I'm able to successfully connect to the API using the curl call below: curl -s -k -H "Content-Type: application/json" -H…
Ben Anderson
  • 1,069
  • 2
  • 16
  • 38
1
vote
0 answers

Recommend Shopify Products Based on keywords

i have some keywords e.g ["i have curly hairs", "24 years of age", "i have dry scalp", "i have frequent dandruff"]. Based on these keywords i want to suggest shopify products.Currently i can think of comparing shopify products descriptions, titles,…
1
vote
0 answers

Why does gl_speech return errors when using for loop, but not for each individual file? Using tryCatch

I just recently started using R, and the package googleLanguageR - it's great! I have over 400 .flac files (ca. 20 seconds each) that I would like to convert into text, using gl_speech. I wrote the following loop: for (i in files) { possibleError…
1
vote
0 answers

Angular 8 language conversion with google api.english to hindi conversion

I have implemented google translation for english to hindi conversion. translation is successfully implemented. but i want if i type in english then it should not translate but only type in hindi as it is. Like : What is your name Result spectated…
manoj
  • 41
  • 5
1
vote
0 answers

UTF-8 Encoding not respected by `analyze_entities`

I'm trying the google cloud language_v1 api to extract named entities from some input text, however, I found out that something fishy is going on with the encoding parameter. When I run txt = '''La divinité des uji la plus importante était ( et est…
Alberto
  • 597
  • 3
  • 17
1
vote
1 answer

dose Google AJAX Language API have frequency limited?

i have many documents need to be translate,so i want to know is there some frequency limitation for this api,i didn't found any relevent information,any advice is welcome
mlzboy
  • 14,343
  • 23
  • 76
  • 97
1
vote
1 answer

wrong language detection with google translate (multiple languages)

I am currently working on something where I am trying to translate a paragraph which includes more than one language. Now I have realised with the google translate API if we have lets say: hello bye hola it will detect the language as English and…
1
vote
1 answer

What is the easiest way to use Google AJAX Language API to detect language with PHP?

There is an easy way to use the Google AJAX Language API to detect language with PHP without use any library or a giant framework?
carlfilips
  • 2,574
  • 3
  • 21
  • 27
0
votes
1 answer

LanguageApp.translate() causes onEdit(e) to fail

I am trying to write a function in Google Apps Script that triggers whenever a cell is edited in the Google Sheet in which the script is embedded. The purpose of the function is to automatically add the English translation as a note on the edited…
1
2