Class: Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Text

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/prediction_v1_6/classes.rb,
generated/google/apis/prediction_v1_6/representations.rb,
generated/google/apis/prediction_v1_6/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Text

Returns a new instance of Text.



303
304
305
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 303

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#countString

Number of times the output label occurred in the data set. Corresponds to the JSON property count

Returns:

  • (String)


296
297
298
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 296

def count
  @count
end

#valueString

The output label. Corresponds to the JSON property value

Returns:

  • (String)


301
302
303
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 301

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



308
309
310
311
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 308

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @value = args[:value] if args.key?(:value)
end