Natural Language V1 API - Class Google::Cloud::Language::V1::ClassificationCategory (v1.0.0)

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

Represents a category returned from the text classifier.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#confidence

def confidence() -> ::Float
Returns
  • (::Float) — The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.

#confidence=

def confidence=(value) -> ::Float
Parameter
  • value (::Float) — The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
Returns
  • (::Float) — The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.

#name

def name() -> ::String
Returns
  • (::String) — The name of the category representing the document.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The name of the category representing the document.
Returns
  • (::String) — The name of the category representing the document.