RapidAPI logo

Sign Up

Log In

GoogleNLP

FREE
By dimashirokov
Updated 4 months ago
Machine Learning
4.4/10
Popularity Score
264ms
Latency
100%
Success Rate

GoogleNLP API Overview

Derive insights from unstructured text using Google machine learning

Contact API Provider
star-blueRate

GoogleNLP

GoogleNLP Package

Derive insights from unstructured text using Google machine learning

  • Domain: GoogleNLP
  • Credentials: apiKey, apiSecret

How to get apiKey:

  1. Go to the projects page
  2. Select or create a Cloud Platform Console project.
  3. Enable billing for your project.
  4. Click Continue to enable the Translate API and any related services.
  5. On the Credentials page, get an API key (select Browser key when prompted). Note: If you have an existing API key, you can use that key.

Custom datatypes:

Datatype Description Example
Datepicker String which includes date and time 2016-05-28 00:00:00
Map String which includes latitude and longitude coma separated 50.37, 26.56
List Simple array ["123", "sample"]
Select String with predefined values sample
Array Array of objects [{"Second name":"123","Age":"12","Photo":"sdf","Draft":"sdfsdf"},{"name":"adi","Second name":"bla","Age":"4","Photo":"asfserwe","Draft":"sdfsdf"}]

GoogleNLP.analyzeEntities

Finds named entities (currently finds proper names) in the text, entity types, salience, mentions for each entity, and other properties.

Field Type Description
accessToken String Google Cloud Access Token
encodingType Select The encoding type used by the API to calculate offsets. Valid values: NONE, UTF8, UTF16, UTF32
documentType Select Required. If the type is not set or is TYPEUNSPECIFIED, returns an INVALIDARGUMENT error. Valid values: TYPE_UNSPECIFIED, PLAIN_TEXT, HTML
documentLanguage Select The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. Only English, Spanish, and Japanese textual content are supported.
documentContent String The content of the input in string format.

GoogleNLP.analyzeEntitiesByUri

Finds named entities (currently finds proper names) in the text, entity types, salience, mentions for each entity, and other properties.

Field Type Description
accessToken String Google Cloud Access Token
encodingType Select The encoding type used by the API to calculate offsets. Valid values: NONE, UTF8, UTF16, UTF32
documentType Select Required. If the type is not set or is TYPEUNSPECIFIED, returns an INVALIDARGUMENT error. Valid values: TYPE_UNSPECIFIED, PLAIN_TEXT, HTML
documentLanguage Select The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. Only English, Spanish, and Japanese textual content are supported.
documentGcsContentUri String The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucketname/objectname. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.

GoogleNLP.analyzeSentiment

Analyzes the sentiment of the provided text.

Field Type Description
accessToken String Google Cloud Access Token
encodingType Select The encoding type used by the API to calculate offsets. Valid values: NONE, UTF8, UTF16, UTF32
documentType Select Required. If the type is not set or is TYPEUNSPECIFIED, returns an INVALIDARGUMENT error. Valid values: TYPE_UNSPECIFIED, PLAIN_TEXT, HTML
documentLanguage Select The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. nly English, Spanish, and Japanese textual content are supported.
documentContent String The content of the input in string format.

GoogleNLP.analyzeSentimentByUri

Analyzes the sentiment of the provided text.

Field Type Description
accessToken String Google Cloud Access Token
encodingType Select The encoding type used by the API to calculate offsets. Valid values: NONE, UTF8, UTF16, UTF32
documentType Select Required. If the type is not set or is TYPEUNSPECIFIED, returns an INVALIDARGUMENT error. Valid values: TYPE_UNSPECIFIED, PLAIN_TEXT, HTML
documentLanguage Select The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. nly English, Spanish, and Japanese textual content are supported.
documentGcsContentUri String The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucketname/objectname. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.

GoogleNLP.analyzeSyntax

Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.

Field Type Description
accessToken String Google Cloud Access Token
encodingType Select The encoding type used by the API to calculate offsets. Valid values: NONE, UTF8, UTF16, UTF32
documentType Select Required. If the type is not set or is TYPEUNSPECIFIED, returns an INVALIDARGUMENT error. Valid values: TYPE_UNSPECIFIED, PLAIN_TEXT, HTML
documentLanguage Select The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. nly English, Spanish, and Japanese textual content are supported.
documentContent String The content of the input in string format.

GoogleNLP.analyzeSyntaxByUri

Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.

Field Type Description
accessToken String Google Cloud Access Token
encodingType Select The encoding type used by the API to calculate offsets. Valid values: NONE, UTF8, UTF16, UTF32
documentType Select Required. If the type is not set or is TYPEUNSPECIFIED, returns an INVALIDARGUMENT error. Valid values: TYPE_UNSPECIFIED, PLAIN_TEXT, HTML
documentLanguage Select The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. nly English, Spanish, and Japanese textual content are supported.
documentGcsContentUri String The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucketname/objectname. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.

GoogleNLP.annotateText

A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.

Field Type Description
accessToken String Google Cloud Access Token
encodingType Select The encoding type used by the API to calculate offsets. Valid values: NONE, UTF8, UTF16, UTF32
documentType Select Required. If the type is not set or is TYPEUNSPECIFIED, returns an INVALIDARGUMENT error. Valid values: TYPE_UNSPECIFIED, PLAIN_TEXT, HTML
documentLanguage Select The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. nly English, Spanish, and Japanese textual content are supported.
documentContent String The content of the input in string format.
extractSyntax Select Extract syntax information. Provides a powerful set of tools for analyzing and parsing text through syntactic analysis.
extractEntities Select Extract entities. Entity Analysis provides information about entities in the text, which generally refer to named 'things' such as famous individuals, landmarks, common objects, etc.
extractDocumentSentiment Select Extract document-level sentiment. Sentiment analysis attempts to determine the overall attitude (positive or negative) expressed within the text. Sentiment is represented by numerical score and magnitude values.

GoogleNLP.annotateTextByUri

A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.

Field Type Description
accessToken String Google Cloud Access Token
encodingType Select The encoding type used by the API to calculate offsets. Valid values: NONE, UTF8, UTF16, UTF32
documentType Select Required. If the type is not set or is TYPEUNSPECIFIED, returns an INVALIDARGUMENT error. Valid values: TYPE_UNSPECIFIED, PLAIN_TEXT, HTML
documentLanguage Select The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. nly English, Spanish, and Japanese textual content are supported.
documentGcsContentUri String The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucketname/objectname. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
extractSyntax Select Extract syntax information. Provides a powerful set of tools for analyzing and parsing text through syntactic analysis.
extractEntities Select Extract entities. Entity Analysis provides information about entities in the text, which generally refer to named 'things' such as famous individuals, landmarks, common objects, etc.
extractDocumentSentiment Select Extract document-level sentiment. Sentiment analysis attempts to determine the overall attitude (positive or negative) expressed within the text. Sentiment is represented by numerical score and magnitude values.
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://GoogleNLPdimashirokovV1.p.rapidapi.com/analyzeEntities")
.header("X-RapidAPI-Host", "GoogleNLPdimashirokovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication