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_entitiesexecFinds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties.
analyze_sentimentexecAnalyzes the sentiment of the provided text.
annotate_textexecA convenience method that provides all features in one call.
classify_textexecClassifies a document into categories.
moderate_textexecModerates a document for harmful and sensitive categories.

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​

Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties.

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