Class: Google::Apis::LanguageV1::XpsStringStatsUnigramStats

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/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.



3727
3728
3729
# File 'lib/google/apis/language_v1/classes.rb', line 3727

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)


3720
3721
3722
# File 'lib/google/apis/language_v1/classes.rb', line 3720

def count
  @count
end

#valueString

The unigram. Corresponds to the JSON property value

Returns:

  • (String)


3725
3726
3727
# File 'lib/google/apis/language_v1/classes.rb', line 3725

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3732
3733
3734
3735
# File 'lib/google/apis/language_v1/classes.rb', line 3732

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