Questions tagged [google-cloud-nl]

google-cloud-nl indicates a question relates to the Google Cloud NL API. The NL API provides natural language understanding technologies including syntax, entity recognition and linking, and sentiment analysis. Questions may relate to the API (such as how to call the API or technical issues with ...

-1
votes
0answers
2 views

Format of the input dataset for AutoML multi-label text classification

What should the format of the input dataset be for AutoML multi-label text classification?
0
votes
1answer
11 views

begin_offset is set to -1 Google NATURAL LANGUAGE API (entity_extraction)

Google Cloud CLOUD NATURAL LANGUAGE API (entity_extraction) returns -1 for begin_offset(both on nodejs and python). Am I missing any paramters from google.cloud import language from google.cloud....
0
votes
1answer
9 views

Can we compare two different strings for similarity using Google NLP API's?

Example: String 1: Help me to track calls. String 2: Assist me in call tracking. These two strings have the same meaning but are not identical. Is there any way to find similarity between strings ...
-1
votes
1answer
47 views

How to count the number of noun appeared in a paragraph with Google's NL api using ruby?

Trying to count the number of noun appeared in a paragraph with Google's NL api using ruby. Been looking up the document, couldn't find how to do this. Work out a solution last night text = '...
0
votes
0answers
14 views

Google Cloud PHP Natural Language find date within sentence

I am using the Google Cloud PHP Natural Language library, but I am struggling to extract the date from a sentence. The date would be in various formats e.g. Tomorrow at 9am Monday 23rd of July 01-01-...
0
votes
1answer
46 views

Google Cloud Natural Language API - How is document magnitude calculated?

I am currently working with the Google Cloud Natural Language API and need to know how the magnitude value for a whole document (consisting of several sentences) is calculated? For the document ...
0
votes
2answers
81 views

Error/ Exception handling in for loop - python

I am using the Google Cloud NL API to analyse the sentiment of some descriptions. As for some rows the error InvalidArgument: 400 The language vi is not supported for document_sentiment analysis.keeps ...
0
votes
1answer
25 views

(Google Cloud NLP) - Why doesn't analyze_syntax() method return lists?

I am learning Google Cloud Natural Language Processing API. The API basics page illustrates that the response of analyze_syntax() method should be as 'List' of Sentences(With text and analysis) 'List'...
0
votes
0answers
53 views

Get polar opposite for every word in google cloud nlp api

I'm working with Google Cloud NLP Api with Python(3.6), my client asked to get polar-opposite/replaced-word-for-opposite-word for every word of provided text file. Here's what I have tried: From ...
0
votes
2answers
53 views

Google Cloud NL entity recognizer grouping words together

When attempting to find the entities in a long input of text, Google Cloud's natural language program is grouping together words and then getting their incorrect entity. Here is my program: def ...
1
vote
1answer
50 views

Unable to print sentiment using google cloud natural language API

Below is the code I tried but it runs with the error shown below from google.cloud import bigquery from google.cloud.language import enums from google.cloud.language import types import sys ...
1
vote
0answers
19 views

Detecting Calendar Events using the Google Cloud Natural Language service

Tried the Google Cloud Natural Language example. It worked nicely but I want it to be able to detect calendar events such as: "Appointment at the Kendall Building at 800 Florida Ave NE on June 28th ...
0
votes
1answer
56 views

How to generate a copy of the original text including the highlighted entities with PHP using results from Google Natural Language API

I am processing some text with the Google Natural Language API and the PHP client libraries, and I would like to generate a copy of the original text that replicates the format that you can see in the ...
0
votes
1answer
75 views

String field 'google.cloud.language.v1beta2.TextSpan.content' contains invalid UTF-8 data when parsing a protocol buffer

I am trying to run Python script from Google Cloud Natural Language API Python Samples https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/language/cloud-client/v1beta2/snippets....
0
votes
0answers
19 views

Post Google cloud Vision and NLP apis response to AWS Dynamodb

I'm working on a project in which I need to post the response from Google Cloud Vision & Natural Language Processing APIs response to a DynamoDB table.I have successfully implemented these apis ...
1
vote
1answer
82 views

Google NLP API - Companies identified as “Unknown”

I try to identify entities in French newspaper articles and very often organizations, even famous ones such as Apple, are identified as "Unknown", whereas the linked Wikipedia page is correct. You ...
1
vote
2answers
67 views

some fields get no value when converting the Google Cloud result to json using Protobuf

When I am trying to convert the message output from Google Cloud Natural Language API to json using protobuf, the sentiment and magnitude fields end up with no value at all. If I don't use it and just ...
2
votes
0answers
169 views

converting Google Cloud NLP API entity sentiment output to JSON

I have this output result from Google Cloud Natural Language API (took me quite a while to produce it so I don't want to go with the solution in How can I JSON serialize an object from google's ...
0
votes
0answers
27 views

Is there a supported method to pack texts in a GCP NL api text record request?

Some of our texts to be analyzed are not complete sentences, and some of them are only 10-20 characters. We would see tremendous cost savings by batching those into a single text record request to GCP....
0
votes
1answer
46 views

Recreating google natural language entity display

I've been playing around with google's entity analyser, and it looks really good! But I've been bashing my head against this for a while - I'm trying to replicate the image below (seen on google's ...
0
votes
1answer
30 views

How to get name/confidence individually from classify_text?

Most of the other methods in the language api, such as analyze_syntax, analyze_sentiment etc, have the ability to return the constituent elements like sentiment.score sentiment.magnitude token....
1
vote
1answer
111 views

How to use Google Natural Language with portuguese sentences, with gcloud CLI tool?

I used this command: "gcloud ml language analyse-syntax --language=pt-br --content="Capítulo" and get this error: ERROR: (gcloud.ml.language.analyze-syntax) Failed to read command line argument [-...
0
votes
0answers
116 views

Extracting information from google cloud nlp api

I have the function entity_sentiment_text(text) from Google cloud nlp api(https://cloud.google.com/natural-language/docs/analyzing-entity-sentiment) which prints the output as shown in below ...
0
votes
1answer
17 views

Calling GCP Translate API within Dataproc pyspark map

I am trying to call the language detection method of the translate client api from pyspark for each row in a file. I created a map method as the following but the job seems to just freeze with no ...
0
votes
1answer
91 views

Passing entities string using Google NLP API to Main Activity (Android)

I was able to pass a string (a sentence) to Google's NLP API (configured in a separate class called NLPService.java) from my Main Activity Class, but I want to be able to return the result (a certain ...
1
vote
0answers
373 views

Invalid text content: too few tokens (words) to process

As of Monday 20th November we are getting the error error below for requests to the annotate API using the PHP SDK, it appears the minimum number of tokens now allowed is 20. This was previously ...
1
vote
0answers
90 views

Google Cloud NL API term/classification quality and batch processing on Traditional Chinese (zh-Hant) data

I've tested Google Cloud NL API v1.0 these days. I mainly use Traditional Chinese(a.k.a. zh-Hant) data. After the testing, I find the quality is not satisfactory, classification is not right, too many ...
1
vote
2answers
140 views

Handling 50x errors in Google NLP API

Following an example in Google Sentiment Analysis Java API I have an application sending few hundred text samples for analysis to the service. Every now and then the API slows down significantly and ...
0
votes
0answers
221 views

Google Cloud Library dependency issues (No module named 'google.api.core')

I will try to be as brief as possible. I have a script where I am first translating text from Dutch to English using the Google Translate API and then passing the result of that translation to the ...
1
vote
2answers
466 views

Can Google natural language be use for spell check and grammar check

Can Google Cloud Natural Language API be used for spell check and grammar check? Could it be a good alternative to LanguageTool.org? If it is possible, how can it be done?
0
votes
0answers
19 views

How to get n-best dependency parses in Google NL API?

Google's NL API for dependency parsing works great, but in certain cases the parse trees are wrong. Is there any way to fetch the top n-best dependency parse trees?
1
vote
0answers
50 views

How to pass application specific phrases to google-nlp api?

I'm using Google NLP for executing voice commands in our application. Scenario: Input text: "Generate Customer Profitability Report" Now that 'Customer Profitability' is a single entity from ...
2
votes
1answer
158 views

Requiring @google-cloud/language breaks webpack ('Module Not Found')

I'm a little baffled at this one, so here goes: I'm trying to do a React application with a search bar that will call on Google's Natural Language API (https://cloud.google.com/natural-language/) ,...
6
votes
1answer
557 views

How can I JSON serialize an object from google's natural language API? (No __dict__ attribute)

I'm using the Google Natural Language API for a project tagging text with sentiment analysis. I want to store my NL results as JSON. If a direct HTTP request is made to Google then a JSON response is ...
1
vote
2answers
109 views

Google cloud Natural Language API customization for specific context

We are writting a demo app in which we make use of the Google's cloud Speech API and Natural Language API. We are using it for voice control in TV sets and STBs. Overall I must say that the APIs are ...
0
votes
2answers
270 views

gcloud ml language Request had insufficient authentication scopes

For a relatively small academic research project, I am trying to use Google Cloud Natural Language API. From what I understood on the Authentication Overview, it looks like an API key would be the ...
0
votes
0answers
37 views

contractions in Google Natural Language

I'm using cloud NL to analyze text from Google Speech and it seems to be having trouble with tokenizing contractions for example "I don't like you" comes back as tokens whose content_text are: ...
0
votes
1answer
222 views

Does the Google Cloud Natural Language API actually support parsing HTML?

I'm trying to extract the main body content from news sites & blogs. The docs make it seem as though documents.analyzeSyntax would work as expected with HTML by passing it a document with the ...
0
votes
1answer
54 views

Does google nl api support “word hints”

This article references a feature called "Word Hints." But I am not able to find more info on how to use that. Anyone run into this? https://cloudplatform.googleblog.com/2016/07/the-latest-for-Cloud-...
1
vote
1answer
737 views

Google Sheets Sentiment Analysis

How can I utilize the Google Cloud Natural Language API to perform sentiment analysis for text in a Google Sheet? Is there an integration available or is there a proper way to integrate their REST ...
-1
votes
1answer
20 views

Is “salience” property unavailable for Japanese?

I tried Google NLP API on this page. And I found that when I try a Japanese sentence, all the responses' "salience" property would be 0. Is there any problem? Thanks.
0
votes
1answer
385 views

Authenticating google cloud behind corporate firewall

I am trying to use Google cloud's natural language API at work, and I believe my corporate firewall is blocking communication between python and google cloud. After entering the following in the ...
2
votes
3answers
326 views

Google Natural Language API permission denied error

Google Natural Language API has been working in my iOS app up until yesterday. The API started returning "permission denied" errors as of this morning. E.g: { "error": { "code": 403, ...
0
votes
0answers
52 views

What tags does Google NL API use in its annotate syntax response?

I am using Google NL API's annotate syntax method and using Brat to visualize the response. Where can I find the exact list of "Tags" or "Labels" for words and dependency relations that are used in ...
0
votes
2answers
548 views

Which natural languages are supported by Google Cloud Natural Language API?

I can't find this crucial information in the official docs or here. Which natural languages are supported by the service? Which languages will be supported in the near future? I'm interested in POS ...
0
votes
1answer
61 views

Is it possible to make a massive call to Google Natural Language API?

I am using the Natural Language API from Google to analyse the sentiment of some sentences, but it seems that you can only send sentences one by one. Is it possible to make a massive call of the API? ...
-1
votes
1answer
407 views

Is it possible to use custom data models with Google Natural Language API?

I've been doing some research about pricing and functionality of some NLP services. I recently came across with Google's, however, I've been unable to find any information on their docs about using a ...
1
vote
1answer
582 views

How can I use Google Cloud NL api for sentiment analysis?

How can I use Google cloud NL api for sentiment analysis for tweets from Twitter with topic(Keyword) that I choose? I can write python script that uses Twitter(Twitter api)that how people are feeling ...
6
votes
1answer
1k views

How to authenticate to Google Cloud API without Application Default Credentials or Cloud SDK?

I'm trying to access the Google Cloud API from an AWS Lambda function but I don't know how to authenticate. The auth guide in the Google Cloud documentation (https://cloud.google.com/docs/...
4
votes
1answer
675 views

provide Custom Entities to Google NLP engine

I want the Google NLP engine to be able to recognize custom entities. I have a company called Hint and I want it to tag it as an organization. 'I like hint' or 'I like Hint' does not tag Hint as a ...