Questions tagged [google-natural-language]
97 questions
0
votes
0 answers
Python request to Google Natural Language API fails with error 400
just trying to send a simple request to the Natural Language API in python and i cant understand why it's not working; code:
import requests
import json
apikey = *Blanked*
URL = "https://language.googleapis.com/v1/documents:analyzeSentiment?key="…

hamson
- 1
0
votes
1 answer
How do emoticons and hashags affect the accuracy of Google Natural Language Classify Text?
I have a project where I have to find categories of text using google natural language classify text.
https://cloud.google.com/natural-language/docs/reference/rest/v1/documents/classifyText
My text documents will be having emoticons and hashtags.…
user5999835
0
votes
1 answer
Google Cloud Natural Language API: Does analyzeSyntax API have a param for tokens to not include "*_UNKNOWN" value attributes in partOfSpeech result
I'm wondering if there is any way that the API endpoint allows for the analyzeSyntax API response JSON to not include sub-attributes of partOfSpeech dictionaries if they are *_UNKNOWN? When looking at details around the document input, I can't find…

ScriptAutomate
- 980
- 9
- 17
0
votes
1 answer
gcp NL api sentiment analysis - How to store the results in BigQuery
I am using gcp bigquery to store news streaming by google function and save it in bigquery.
How can I run a python script that is using the data from bigquery and finally writes back the result for score and magnitude to the related dataset?
I could…

Move_On
- 19
- 3
0
votes
3 answers
Google Cloud Tiered Billing - Project v Billing Account
Question: Within Google Cloud are services that offer tiered volume-based pricing such as "Google Natural Language API" base their Tiers on usage aggregated by PROJECT ID or BILLING ACCOUNT?
Example: Entity Analysis Pricing has its first break…

Turk21
- 89
- 1
- 9
0
votes
1 answer
Deploy a AUTOML NL Trainned Model Fails
I'm working with Google Auto ML Natural Language API.
I have already a trained model.
In the beginning, when I trained the model, it was deployed and everything was fine. According with Google's new rules from 22th January 2019, models that have no…

DEV_BBRAS
- 31
- 8
0
votes
2 answers
How is beginoffset calculated for the Google Natural language entities api response?
I am using the Google's Natural language analyzeEntities api and in the response, there is a nested EntityMention.TextSpan object, with 2 fields: content and beginOffset.
I want to leverage the beginOffset for some further analysis. So I was trying…

bsam
- 1,838
- 3
- 20
- 26
0
votes
2 answers
Google Natural Language API - ERROR: Too many open files
I am using the Google Natural Language Content Classification API.
I am authenticating through a service account .json file in a directory with the path exposed in the GOOGLE_APPLICATION_CREDENTIALS environment variable.
There is no issue when I…

cryanbhu
- 4,780
- 6
- 29
- 47
0
votes
1 answer
Google Cloud Natural Language API Classifying Plaintext vs Html
I want to use Google Natural Language API to classify query results: Classifying content
The query results, which I want to classify, are available in HTML and plain text. The official documentation says that the API accepts both types…

Matthias Herrmann
- 2,650
- 5
- 32
- 66
0
votes
0 answers
Python - Google Natural Language Processing API return HttpError 502 bad gateway
I'm working on a project using Python(3.6) and Django(2) in which I need to process too many(~ 50k) files from a directory by using Google cloud natural language processing API, but after processing ~400 files it returns an error as:
Note: I have…

Abdul Rehman
- 5,326
- 9
- 77
- 150
0
votes
0 answers
Python- Google NLP Api returns ssl.SSLEOFError: EOF occurred in violation of protocol
I'm working on a project using Python(3.6) and Django(2) in which I need to process too many files from a directory by using Google cloud natural language processing API, but after processing ~100 files it returns an error as:
ssl.SSLEOFError: EOF…

Abdul Rehman
- 5,326
- 9
- 77
- 150
0
votes
0 answers
Python Google Cloud Natural Language API returns Bad Gateway error with status 502
I'm working on a project using Python(3.6) and Django(2) in which I need to process all text files from a directory using Google's Natural Language API python's Client.
At the moment, there are 30 text files in my folder for testing purpose, the…

Abdul Rehman
- 5,326
- 9
- 77
- 150
0
votes
2 answers
compare NER library from Stanford coreNLP, SpaCy And Google cloud
I want to recognise person name from text. But i'm getting confused which NLP library I have to use for NER. I find out following best NLP library for NER
1. Stanford coreNLP
2. Spacy
3. Google cloud.
I unable to find out which library will give…

Anil Jagtap
- 1,740
- 4
- 27
- 44
0
votes
1 answer
How does Google use information provided to their AutoML Natural Language service?
I am writing a privacy policy for a web site which uses Google's AutoML Natural Language service. What does Google do with the information we provide to that service? Does anyone have a link to a terms of use document or privacy policy which…

Brett Donald
- 6,745
- 4
- 23
- 51
0
votes
1 answer
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.language import enums
from google.cloud.language…

Bere L.
- 5
- 2