Cloud Natural Language V2 API - Class Google::Cloud::Language::V2::AnnotateTextRequest::Features (v0.3.0)

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

All available features. 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) — Optional. Classify the full document into categories.

#classify_text=

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

#extract_document_sentiment

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

#extract_document_sentiment=

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

#extract_entities

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

#extract_entities=

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

#moderate_text

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

#moderate_text=

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