Questions tagged [google-natural-language]
97 questions
0
votes
1 answer
Unclear on TypeError message from Google NL API running sentiment analysis
Goal
To run sentiment analysis on a column of text in a pandas dataframe, having it return both score and magnitude values for each line of text.
Current code
This is what I'm running, pulling in a dataframe (df03) with a column of text (text02)…

dsx
- 167
- 1
- 12
0
votes
1 answer
Need help understanding 'no attribute' error message in Google Natural Language API
Situation
I'm trying to run Google's Cloud NLP sentiment analysis on a text field pulled from the Twitter API with Tweepy and then turned into a pandas Dataframe. That Dataframe has a text field called text, which is the tweet content on which I'd…

dsx
- 167
- 1
- 12
0
votes
1 answer
How can I handle an exception using apache beam Pipeline in Python?
I am getting an error in one of the iterations on the pipeline, given the Google NLP API returns an error when the language identified for the text isn't supported. I am having issues handling this exception within the pipeline to make use of the…

Emmanuel Murairi
- 321
- 2
- 15
0
votes
1 answer
Error: Cannot find the jsonl: gs://{bucket_name}/Frist_test.jsonl in request
I am exploring using Google Cloud Platform Natural Language for entity extraction. I am working on just setting up a playground to get the hang of things and I can't seem to get past square one. I have created a new cloud store bucket to hold my…

fred_rogers
- 3
- 2
0
votes
1 answer
Create a model with google ML natural language or other potential service
So I have been collecting data of numerous text-descriptions about articles, where as each description was structred differently. Now, I would have to "create" an algorithm, which sorts out the title of that article for me what is a hard task. I…

AJ.beProgramming
- 87
- 4
0
votes
1 answer
Googe Natural Language predict example
Im new to python. Have already trained custom Google Natural Language model and trying to execute example provided by google.
import sys
import os
from google.api_core.client_options import ClientOptions
from google.cloud import…

tagilas
- 65
- 8
0
votes
0 answers
ImportError: cannot import name 'enums' from 'google.cloud.language'
I am having a lot of struggles with getting the Google Cloud Natural Language API running. I am trying to run a Python program on Spyder. I've been trying everything since installed tweepy, nltk, google-cloud-language, python-telegram-bot to upgrade…
0
votes
1 answer
Json formatting for Google cloud NLP API (documents.analyzeEntities)
To send a document to the Cloud NLP API, we use the below JSON formating (as per the doc )
{
"document":{
"type":"PLAIN_TEXT",
"content":"Joanne Rowling, who writes under the pen names J. K. Rowling and Robert Galbraith, is a…

Salih
- 391
- 1
- 13
0
votes
1 answer
Error with ' '.join() parsing txt for named entity recognition in NLP google API
I'm having a rough time in trying to construct a dataset for Named Entity Recognition in Google NLP API, via this script provided by Google input_helper_v2.py
The problem comes with the function _DownloadGcsFile, as it throws this…

Daniel Mejia
- 115
- 4
0
votes
1 answer
create_pretraining_data.py is writing 0 records to tf_examples.tfrecord while training custom BERT model
I am writing a custom BERT model on my own corpus, I generated the vocab file using BertWordPieceTokenizer and then running below code
!python create_pretraining_data.py
--input_file=/content/drive/My…

Anirban Ghorai
- 11
- 1
- 3
0
votes
0 answers
How to access Google Cloud Natural Language API behind proxy C#
I am trying to access Google Cloud Natural Language for text analytics. The
code is working fine from open internet, but not working from my
company network. I am new to this Google API. I have no idea of how
to configure my company proxy in the…
0
votes
1 answer
Firebase Admin pointing to the wrong Google Cloud Project when using Cloud Natural Language API
I have a project on GCP with a project-id and a google service account which I have been using to access the Cloud NLP API all along until recently, over the weekend, when it stopped working. Now I get an error which says:
Cloud Natural Language…

Chukwuma Nwaugha
- 575
- 8
- 17
0
votes
0 answers
AnalyzeSyntax Returns Inaccurate Results for Context
AnalyzeSyntax for "Mary likes to color pictures." returns (as expected) "color" is a verb. But when I do the same test with "Mary colors pictures." The response classifies "colors" is a noun. Unless I am mistaken, in the context of the sentence,…

CodeBlooded
- 1
- 1
0
votes
1 answer
How to assign an ID to a entity in a Google AuoML natural language entity extraction model?
How to give assign an ID to the entities added into AutoML Natural Language entity recognition model. For example, I Have added an entity "Chelsea" under "Sports" Label. How will I assign "Chelsea" an ID, so that whenever an article with an entity…
0
votes
1 answer
Neoj4 GCP error: "The requested URL /v1/documents:classifyText?key=apiKey was not found on this server"
I am trying to figure out how Neoj4 Desktop can be used to handel NLP usgin this blog. Everything was ok until the text classification moment:
CALL apoc.periodic.iterate("
// get all articles
MATCH (node:Article) RETURN node
","
// classify…

user1680859
- 1,160
- 2
- 24
- 40