Skip to main content

documents

Creates, updates, deletes, gets or lists a documents resource.

Overview

Namedocuments
TypeResource
Idgoogle.language.documents

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
analyze_sentimentexecAnalyzes the sentiment of the provided text.
analyze_entitiesexecFinds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties.
classify_textexecClassifies a document into categories.
moderate_textexecModerates a document for harmful and sensitive categories.
annotate_textexecA convenience method that provides all features in one call.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription

Lifecycle Methods

Analyzes the sentiment of the provided text.

EXEC google.language.documents.analyze_sentiment 
@@json=
'{
"document": "{{ document }}",
"encodingType": "{{ encodingType }}"
}';