Questions tagged [google-natural-language]

97 questions
2
votes
1 answer

How to populate dataframe from dictionary in loop

I am trying to perform entity analysis on text and I want to put the results in a dataframe. Currently the results are not stored in a dictionary, nor in a Dataframe. The results are extracted with two functions. df: ID title cur_working …
Dennis Loos
  • 113
  • 2
  • 9
2
votes
1 answer

Python Packages

I tried run this code that uses Google cloud. import signal import sys from google.cloud import language, exceptions # create a Google Cloud Natural Languague API Python client client = language.LanguageServiceClient() But it gives the following…
1
vote
1 answer

Unsure how to resolve language error message from Google's natural language api: "The language sq is not supported for document_sentiment analysis."

I have an app that's been working for months and is now giving me an error. The app takes tweets from the Twitter API and runs them through Google's Sentiment Analysis API, returning sentiment analysis on each of the tweets. Without changing the…
dsx
  • 167
  • 1
  • 12
1
vote
0 answers

Cloud Natural Language API: what are accessible languages?

I'm trying to run Natural Language API with Google Sheets using this documentation. Natural Language API demo has a list of possible languages, which lists German too. But if I set the language in Google Script as de-de I get an error…
Evgeniy
  • 2,337
  • 2
  • 28
  • 68
1
vote
1 answer

Access Google Cloud Natural Language with Google Colab

I am attempting to use Google's Cloud Natural Language API with Google Colab. I started by following Google's simple example:…
1
vote
1 answer

How can I categorize tweets with Google Cloud Natural Language API - if possible?

I am trying to use Google Cloud Natural Language API to classify/categorize tweets in order to filter out tweets that are not relevant to my audience (weather related). I can understand it must be tricky for an AI solution to make a classification…
Christoffer
  • 2,271
  • 3
  • 26
  • 57
1
vote
2 answers

Using Google Cloud Natural Language API with Healthcare Content

I am trying to use the Node.js SDK for the Natural Language API (@google-cloud/language). I can successfully analyze the entities for a string as per the docs. What I want to do is analyze the same string but using the Healthcare Natural Language…
1
vote
1 answer

Duplicate classes occur when adding Google Cloud Language library to Android app

I am encounter a problem when I try to build the Android app and it appear error. The error appear after I add the last line in Gradle Build file (the natural language library). Below is my gradle build file code plugins { id…
1
vote
1 answer

Minimum android device specs to use google ml kit

I'm looking for minimum device specs required for an android device to run google ml-kit without any problems. I could not find it on their official website. Some of them I required to know were : Architecture OS RAM Min Camera resolution If I…
1
vote
0 answers

ModuleNotFoundError: No module named 'google' when using Natural Language

I'm testing out the Natural Language API from Google but this line from google.cloud import language_v1 is throwing the following error ModuleNotFoundError: No module named 'google' I am using Poetry and my pyproject.toml contains…
mcansado
  • 2,026
  • 4
  • 25
  • 39
1
vote
1 answer

Couldn't find Service account Role on GCP for Cloud Natural Language API

I was setting up a GCP project for testing Google's Cloud Natural Language API. I'm just doing the resource manager role and I want to provide access to a developer for accessing this API via a service account. But, when I try to create a role for…
1
vote
2 answers

How to get general categories for text using NLP like fasttext?

I am working on an application and I would like to infer general categories from the text using natural language processing. I am new to Natural Language Processing (NLP). The Google Natural Language API does this using a reasonable high-level set…
1
vote
1 answer

How to resolve - ValueError: cannot set using a multi-index selection indexer with a different length than the value in Python

I have some sample code that I use to analyze entities and its sentiments using Google's natural language API. For every record in my Pandas dataframe, I want to return a list of dictionaries where each element is an entity. However, I am running…
Regressor
  • 1,843
  • 4
  • 27
  • 67
1
vote
1 answer

Too many open files: '/home/USER/PATH/SERVICE_ACCOUNT.json' when calling Google's Natural Language API

I'm working on a Sentiment Analysis project using the Google Cloud Natural Language API and Python, this question might be similar to this other question, what I'm doing is the following: Reads a CSV file from Google Cloud Storage, file has…
1
vote
1 answer

com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;CLjava/lang/Object;)V

I am using the google BETA API: AutoML Natural Language, after training the API, I did tests in a Java SE project obtaining a satisfactory result, however, when I migrated it to a Java EE project I got different problems. About: -Java -version:…