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

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

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