Natural Language V1 API - Class Google::Cloud::Language::V1::AnnotateTextRequest::Features (v0.9.0)

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

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#classification_model_options

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

#classification_model_options=

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

#classify_text

def classify_text() -> ::Boolean
Returns
  • (::Boolean) — Classify the full document into categories.

#classify_text=

def classify_text=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Classify the full document into categories.
Returns
  • (::Boolean) — Classify the full document into categories.

#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.