Class: Google::Apis::LanguageV2::XpsStringStatsUnigramStats

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

Overview

The statistics of a unigram.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsStringStatsUnigramStats

Returns a new instance of XpsStringStatsUnigramStats.



3442
3443
3444
# File 'lib/google/apis/language_v2/classes.rb', line 3442

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

Instance Attribute Details

#countFixnum

The number of occurrences of this unigram in the series. Corresponds to the JSON property count

Returns:

  • (Fixnum)


3435
3436
3437
# File 'lib/google/apis/language_v2/classes.rb', line 3435

def count
  @count
end

#valueString

The unigram. Corresponds to the JSON property value

Returns:

  • (String)


3440
3441
3442
# File 'lib/google/apis/language_v2/classes.rb', line 3440

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3447
3448
3449
3450
# File 'lib/google/apis/language_v2/classes.rb', line 3447

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