Questions tagged [google-cloud-translate]

56 questions
6
votes
3 answers

'TranslationServiceClient' object has no attribute 'location_path' on Google Cloud Translate "translate_v3"

I'm using Python 3.6 and google-cloud-translate package. from google.cloud import translate_v3 as translate client = translate.TranslationServiceClient(credentials = credentials) parent = client.location_path("my-location", "global") Since…
Rimo
  • 555
  • 1
  • 8
  • 18
4
votes
1 answer

Google Cloud TypeError: Cannot read property 'Reader' of undefined

My Google Cloud Function won't upload if I include this line, which came from the docs: const {Translate} = require('@google-cloud/translate').v2; The error is TypeError: Cannot read property 'Reader' of undefined There's no Reader in my code. My…
4
votes
2 answers

google cloud translate api library not building- Duplicate class found

I'm trying to run the google cloud api sample but it's not getting builded. build.gradle implementation('com.google.cloud:google-cloud-translate:1.12.0') { exclude group: 'org.apache.httpcomponents' exclude group: 'org.json',…
AskQ
  • 4,215
  • 7
  • 34
  • 61
3
votes
2 answers

Google Cloud Translate - Serbian Latin not working

I have used Google Translate APIs for translating from English to Serbian (with Latin characters). Since few days ago, using en as source language and sr-Latn I was able to get correct translation but now it does not seem anymore. Code snippet: from…
3
votes
0 answers

Google Translate: UI translates but API fails

Just struggling with the following thing: I have a lot of kind-of-comments-dirty-writing-manner comments. Comments came from India region, and there is a mix of languages (but not within the single comment). In addition there are samples with the…
smyskov
  • 126
  • 4
3
votes
1 answer

Force "vouvoiement" Google cloud translation API

I have a lot of dialog files to translate from English to French. Google cloud translation API works fine but sometimes the translation returns "tu" and other times it returns "vous". In a nutshell, "tu" is informal and singular, while "vous" is…
3
votes
1 answer

Is there any API access to Google Translate's "Did you mean" functionality?

I'd like to fully use Google Translate as an API, and of course their official Cloud Translation service basically does this. But recently I noticed one small difference: in the browser, Google TL may detect typos / small errors and automatically…
rococo
  • 2,280
  • 2
  • 22
  • 37
2
votes
2 answers

Require to Import syntax

Does anyone know the import syntax for this line of code: const { Translate } = require("@google-cloud/translate").v2; I was thinking something like: import { Translate } from "@google-cloud/translate.v2" but that doesnt work. any ideas?
1
vote
0 answers

Error message when running javascript code designed to asynchronously translate .docx text from Arabic to English with the help of a .tmx glossary

OK, I've abandoned the approach used earlier and adopted a new, simpler one. But when I run my code here is the somewhat "encouraging" error message I get now: Translation error: Error: 3 INVALID_ARGUMENT: Glossary does not belong to any requested…
1
vote
1 answer

Google Cloud Translate vs Python googletrans

I have been thinking about developing a new product which has to be capable of translating text to several different languages. While I was doing my research, I have found the Python library named "googletrans", which is completely free to use.…
1
vote
1 answer

Multicloud: Authenticate Googe Cloud Translation Client from AWS Lambda (Nodejs)

Problem I am trying to access a Google Cloud service (Cloud Translate API) from my AWS Lambda using Nodejs and serverless framework. The system already works perfectly when I use a Google Service Account Key, so that validates that the two cloud…
1
vote
0 answers

Change base model when training google automl custom model

Is there a way to change the base model when training a translation custom model in google automl? I was told so, but the drop-down menu in the base model option is blocked and there is a warning that says "All custom translation models are trained…
1
vote
1 answer

Is it safe to call google cloud translate api directly from react-native without a backend?

I am building an app in react-native in which it is necessary to translate texts dynamically, but it has not even been necessary to implement a backend, since everything is done directly from the app. I want to implement the google cloud translate…
1
vote
2 answers

PERMISSION_DENIED: Cloud IAM permission 'cloudtranslate.generalModels.predict' denied

I'm trying to figure out how the google translate API works. I have little experience with google cloud api. I'm getting this error: PERMISSION_DENIED: Cloud IAM permission 'cloudtranslate.generalModels.predict' denied. My questions: Why do I need…
Felix Schmidt
  • 321
  • 1
  • 3
  • 13
1
vote
1 answer

Use google cloud translation api using api key

I made myself a free account so I can experiment a little bit with Google Cloud Translation API. I generated myself a key from Service account, stored it into a json file, loaded it and everything seems to be working fine. Snippet from my…
1
2 3 4