[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Natural Language V2 API - Class Google::Cloud::Language::V2::AnnotateTextRequest::Features (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-language-v2/latest/Google-Cloud-Language-V2-AnnotateTextRequest-Features)\n- [1.0.1](/ruby/docs/reference/google-cloud-language-v2/1.0.1/Google-Cloud-Language-V2-AnnotateTextRequest-Features)\n- [0.7.0](/ruby/docs/reference/google-cloud-language-v2/0.7.0/Google-Cloud-Language-V2-AnnotateTextRequest-Features)\n- [0.6.0](/ruby/docs/reference/google-cloud-language-v2/0.6.0/Google-Cloud-Language-V2-AnnotateTextRequest-Features)\n- [0.5.1](/ruby/docs/reference/google-cloud-language-v2/0.5.1/Google-Cloud-Language-V2-AnnotateTextRequest-Features)\n- [0.4.0](/ruby/docs/reference/google-cloud-language-v2/0.4.0/Google-Cloud-Language-V2-AnnotateTextRequest-Features)\n- [0.3.2](/ruby/docs/reference/google-cloud-language-v2/0.3.2/Google-Cloud-Language-V2-AnnotateTextRequest-Features)\n- [0.2.0](/ruby/docs/reference/google-cloud-language-v2/0.2.0/Google-Cloud-Language-V2-AnnotateTextRequest-Features)\n- [0.1.0](/ruby/docs/reference/google-cloud-language-v2/0.1.0/Google-Cloud-Language-V2-AnnotateTextRequest-Features) \nReference documentation and code samples for the Cloud Natural Language V2 API class Google::Cloud::Language::V2::AnnotateTextRequest::Features.\n\nAll available features.\nSetting each one to true will enable that specific analysis for the input. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #classify_text\n\n def classify_text() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Optional. Classify the full document into categories.\n\n### #classify_text=\n\n def classify_text=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Optional. Classify the full document into categories. \n**Returns**\n\n- (::Boolean) --- Optional. Classify the full document into categories.\n\n### #extract_document_sentiment\n\n def extract_document_sentiment() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Optional. Extract document-level sentiment.\n\n### #extract_document_sentiment=\n\n def extract_document_sentiment=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Optional. Extract document-level sentiment. \n**Returns**\n\n- (::Boolean) --- Optional. Extract document-level sentiment.\n\n### #extract_entities\n\n def extract_entities() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Optional. Extract entities.\n\n### #extract_entities=\n\n def extract_entities=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Optional. Extract entities. \n**Returns**\n\n- (::Boolean) --- Optional. Extract entities.\n\n### #moderate_text\n\n def moderate_text() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Optional. Moderate the document for harmful and sensitive categories.\n\n### #moderate_text=\n\n def moderate_text=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Optional. Moderate the document for harmful and sensitive categories. \n**Returns**\n\n- (::Boolean) --- Optional. Moderate the document for harmful and sensitive categories."]]