documents
Creates, updates, deletes, gets or lists a documents
resource.
Overview
Name | documents |
Type | Resource |
Id | google.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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
analyze_sentiment | exec | Analyzes the sentiment of the provided text. | ||
analyze_entities | exec | Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties. | ||
classify_text | exec | Classifies a document into categories. | ||
moderate_text | exec | Moderates a document for harmful and sensitive categories. | ||
annotate_text | exec | A 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.
Name | Datatype | Description |
---|
Lifecycle Methods
- analyze_sentiment
- analyze_entities
- classify_text
- moderate_text
- annotate_text
Analyzes the sentiment of the provided text.
EXEC google.language.documents.analyze_sentiment
@@json=
'{
"document": "{{ document }}",
"encodingType": "{{ encodingType }}"
}';
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 }}"
}';
Classifies a document into categories.
EXEC google.language.documents.classify_text
@@json=
'{
"document": "{{ document }}"
}';
Moderates a document for harmful and sensitive categories.
EXEC google.language.documents.moderate_text
@@json=
'{
"document": "{{ document }}",
"modelVersion": "{{ modelVersion }}"
}';
A convenience method that provides all features in one call.
EXEC google.language.documents.annotate_text
@@json=
'{
"document": "{{ document }}",
"features": "{{ features }}",
"encodingType": "{{ encodingType }}"
}';