Class Features (2.12.0)

Features(mapping=None, *, ignore_unknown_fields=False, **kwargs)

All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input. Next ID: 12

Attributes

NameDescription
extract_syntax bool
Extract syntax information.
extract_entities bool
Extract entities.
extract_document_sentiment bool
Extract document-level sentiment.
extract_entity_sentiment bool
Extract entities and their associated sentiment.
classify_text bool
Classify the full document into categories. If this is true, the API will use the default model which classifies into a `predefined taxonomy
moderate_text bool
Moderate the document for harmful and sensitive categories.
classification_model_options google.cloud.language_v1beta2.types.ClassificationModelOptions
The model options to use for classification. Defaults to v1 options if not specified. Only used if classify_text is set to true.