Natural Language V1beta2 API - Class Google::Cloud::Language::V1beta2::AnnotateTextRequest::Features (v0.12.0)

Reference documentation and code samples for the Natural Language V1beta2 API class Google::Cloud::Language::V1beta2::AnnotateTextRequest::Features.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#classification_model_options

def classification_model_options() -> ::Google::Cloud::Language::V1beta2::ClassificationModelOptions
Returns

#classification_model_options=

def classification_model_options=(value) -> ::Google::Cloud::Language::V1beta2::ClassificationModelOptions
Parameter
Returns

#classify_text

def classify_text() -> ::Boolean
Returns
  • (::Boolean) — Classify the full document into categories. If this is true, the API will use the default model which classifies into a predefined taxonomy.

#classify_text=

def classify_text=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Classify the full document into categories. If this is true, the API will use the default model which classifies into a predefined taxonomy.
Returns
  • (::Boolean) — Classify the full document into categories. If this is true, the API will use the default model which classifies into a predefined taxonomy.

#extract_document_sentiment

def extract_document_sentiment() -> ::Boolean
Returns
  • (::Boolean) — Extract document-level sentiment.

#extract_document_sentiment=

def extract_document_sentiment=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Extract document-level sentiment.
Returns
  • (::Boolean) — Extract document-level sentiment.

#extract_entities

def extract_entities() -> ::Boolean
Returns
  • (::Boolean) — Extract entities.

#extract_entities=

def extract_entities=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Extract entities.
Returns
  • (::Boolean) — Extract entities.

#extract_entity_sentiment

def extract_entity_sentiment() -> ::Boolean
Returns
  • (::Boolean) — Extract entities and their associated sentiment.

#extract_entity_sentiment=

def extract_entity_sentiment=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Extract entities and their associated sentiment.
Returns
  • (::Boolean) — Extract entities and their associated sentiment.

#extract_syntax

def extract_syntax() -> ::Boolean
Returns
  • (::Boolean) — Extract syntax information.

#extract_syntax=

def extract_syntax=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Extract syntax information.
Returns
  • (::Boolean) — Extract syntax information.

#moderate_text

def moderate_text() -> ::Boolean
Returns
  • (::Boolean) — Moderate the document for harmful and sensitive categories.

#moderate_text=

def moderate_text=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Moderate the document for harmful and sensitive categories.
Returns
  • (::Boolean) — Moderate the document for harmful and sensitive categories.