# Class Features (2.21.0)

2.21.0 (latest) 2.20.0 2.19.0 2.18.0 2.17.2 2.16.0 2.15.1 2.14.0 2.13.4 2.12.0 2.11.0 2.10.1 2.9.1 2.8.1 2.7.0 2.6.1 2.5.2 2.4.3 2.3.2 2.2.2 2.1.0 2.0.0 1.3.2

    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.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `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. |
| `moderate_text` | `bool` Moderate the document for harmful and sensitive categories. |
| `classification_model_options` | `https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v1.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. |