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 using it) or with the annotations (uses for them, quality issues, or ideas for new annotations).
Questions tagged [google-cloud-nl]
92 questions
13
votes
1 answer
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/authentication) wants me to download a credentials JSON file…

Mohamed Fakhreddine
- 2,326
- 2
- 13
- 10
8
votes
1 answer
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 returned.
However when using the provided Python…

Zach Kagan
- 89
- 1
- 10
6
votes
2 answers
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 popping up, I would like to build a way around…

Christina
- 255
- 2
- 5
- 19
6
votes
0 answers
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 allowing any number of words to be submitted. The test…

Mike Miller
- 61
- 2
5
votes
1 answer
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 organization. It tags Hint as "Other" entity…

Sukanya
- 51
- 2
4
votes
1 answer
How to extract more than label text items in a single annotation using Google NLP
I have created dataset using Google NLP Entity extraction and I uploaded input data's(train, test, validation jsonl files) like NLP format that will be stored in google storage bucket.
Sample Annotation:
{
"annotations": [{
…

dwayneJohn
- 919
- 1
- 12
- 30
4
votes
1 answer
Arabic Sentiment Analysis With Google
I just visited the language support page of google
https://cloud.google.com/natural-language/docs/languages
I found the Arabic (ar) is supported in sentiment analysis.
When I try the tutorial they mentioned but with an Arabic sentence, it gives me…

Ahmed Farouk
- 41
- 1
4
votes
3 answers
Format of the input dataset for Google AutoML Natural Language multi-label text classification
What should the format of the input dataset be for Google AutoML Natural Language multi-label text classification? I know that for multi-class classification I need a column of text and another column for labels. The labels column include one label…

Behzad
- 81
- 7
3
votes
1 answer
How do I train to find the occurrence of a US state in NLP?
How do I train to find the occurrence of a US state, when this set is constrained to 50 states because we need a large amount of data (say 1000 rows) to train a certain label.

dwayneJohn
- 919
- 1
- 12
- 30
3
votes
1 answer
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/) ,and as part of that I of course installed the…

Amber B.
- 1,134
- 10
- 20
3
votes
2 answers
How to get a tree visualization for google nl api?
How can you develop a tree for the syntax analysis in google nl api. Like stanford corenlp uses brat annotation tool to generate the tree. Can we use something like that to generate a dependency parse tree for the json response for google nl api, if…

Amrit Bulusu
- 31
- 3
3
votes
1 answer
Can't set project in Cloud Natural Language API
I'm using the api sample as found here.
Running gcloud config list shows my default project as project = multichoice-insights
Important extract of the code shows that I get the default credentials:
credentials =…

Daniel Lee
- 7,189
- 2
- 26
- 44
3
votes
1 answer
New Google Natural Language API
I've recently used the Language API to gather sentiment predictions for a work project. I had about 1,300 unlabeled documents and we used NLTK's tools initially, which was based on a dictionary of terms with polarity estimates of each word in the…

Ryan Erwin
- 807
- 1
- 11
- 30
3
votes
2 answers
Does the Google Cloud Natural Language API Use or Include Parsey McParseface?
I saw that SyntaxNet was released with Parsey McParseface and then not long after the Google Cloud Natural Language API came out which has some similar capabilities but I do not see any mention of SyntaxNet in the Cloud Natural Language API…
user759885
2
votes
0 answers
Google NLP Entities Returning Wikipedia link as German instead of English
I've been trying to use the Entities Analyze API call for Google NLP and strangely enough, it keeps returning links to Wikipedia in German. Any idea how to resolve this?
You can see the try the API page does the same thing.…

johnD
- 29
- 2