Questions tagged [google-natural-language]

97 questions
8
votes
5 answers

ImportError: cannot import name language in Google Cloud Language API

I am trying to use this sample code from the Google Natural Language API to get a sentiment score back. However, each time I run the code, I get an "ImportError: cannot import name language." error on the first line. I have pip installed the…
5
votes
1 answer

Google NLP api gives Could not find TLS ALPN provider; no working netty-tcnative, Conscrypt, or Jetty NPN/ALPN available

I am trying to use google natural language processing api. I add libraries using Maven and add the GOOGLE_APPLICATION_CREDENTIALSas environment variable which is having the path to a JSON file that contains my service account key. It is giving me…
denny
  • 197
  • 1
  • 1
  • 11
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": [{ …
4
votes
4 answers

Find sentences with similar relative meaning from a list of sentences against an example one

I want to be able to find sentences with the same meaning. I have a query sentence, and a long list of millions of other sentences. Sentences are words, or a special type of word called a symbol which is just a type of word symbolizing some object…
Phil
  • 46,436
  • 33
  • 110
  • 175
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…
3
votes
1 answer

Vietnamese Sentiment Analysis With Google

I founded the Vietnamese which is supported in sentiment analysis. When I try the tutorial they mentioned but with an Vietnamese sentence, it just detected Vietnam language but it not show 'sentence' and 'score'. My code: credentials =…
3
votes
1 answer

Dialogflow Knowledge (beta feature)

I am trying to create FAQ using Dialogflow Knowledge. Ideally, either the conversation intent or FAQ must trigger. When I type in the FAQ, it does fetch the response from knowledge base but at the same time it also triggers a intent for slot…
3
votes
1 answer

Receiving: 'Auth error:Error: read ECONNRESET' when connecting to google cloud platform behind a proxy

I've been working on a Node.js project that accesses the google cloud api. When I'm in an external network the request works fine and I'm receiving the expected answer. Yet when I'm behind my cooperate proxy, which is necessary to access our smpt…
3
votes
0 answers

I want to develop rasa-nlu component to integrate with Google CLOUD NATURAL LANGUAGE API

In the pipeline of Rasa NLU, I want to add my custom component which talks with google CLOUD NATURAL LANGUAGE API. I want to know, is it a good idea to use google service instead of default engines available? If yes, from where I can start building…
2
votes
2 answers

R - How to Append Output (NL API translation) As A New Column In Existing Tibble?

I'm trying to run googleLanguageR to translate a certain column using NL API translation service. Here's my code: https://cran.r-project.org/web/packages/googleLanguageR/googleLanguageR.pdf gl_translate( data$comments, target = "en", format =…
AdilK
  • 567
  • 1
  • 7
  • 25
2
votes
1 answer

Loop function on Apps Scripts & Google Natural Language API

I am learning how to code so sorry if this is too basic, but I am getting troubles here: I've been trying to invoke the Google Natural Language API, to give me information about information on 210 rows of my Google Spreadsheet (the whole table has…
2
votes
1 answer

Is there a way to explicitly set start and end of sentences on Google Natural Language API sentiment analysis?

I am using Google Natural Language API for sentiment analysis. I have an array of string texts that I concatenate and send to google to get sentiment values for each sentiment, but Google has its own idea on where the sentences start and end, so…
2
votes
1 answer

IAM roles for Google Cloud Natural Language API

I want to use Google Cloud Natural Language API with its Node.js lib. For authentication, I use a service-account as suggested by the docs Docs suggest to use role "Owner" but for production "more granular" permissions. Unfortunately they dont…
2
votes
1 answer

How to prepare CSV file for AutoML entity extraction from GCP?

I have created Jsonl files and formats specified by google. I uploaded the files to the Cloud Storage. I prepared a CSV file, first column has path to Jsonl file(gs://*example/file.jsonl), second column has 'TRAIN' or 'VALIDATE' or 'TEST'. I got an…
2
votes
1 answer

How does Google Language API split text into sentences to assign sentiment?

The question is in the title. I have joined sentences into a large text, which I then call analyze_sentiment on. The goal is to pull sentiments for the individual sentences - exactly the ones originally joined. I first clean out all punctuation,…
1
2 3 4 5 6 7