class Google::Apis::LanguageV1beta2::ClassificationCategory
Represents a category returned from the text classifier.
Attributes
confidence[RW]
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text. Corresponds to the JSON property `confidence` @return [Float]
name[RW]
The name of the category representing the document, from the [predefined taxonomy](cloud.google.com/natural-language/docs/categories). Corresponds to the JSON property `name` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/language_v1beta2/classes.rb, line 356 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/language_v1beta2/classes.rb, line 361 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @name = args[:name] if args.key?(:name) end