Class: Google::Apis::LanguageV1beta2::XpsStringStats

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

Overview

The data statistics of a series of STRING values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsStringStats

Returns a new instance of XpsStringStats.



3717
3718
3719
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3717

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

Instance Attribute Details

#common_statsGoogle::Apis::LanguageV1beta2::XpsCommonStats

Common statistics for a column with a specified data type. Corresponds to the JSON property commonStats



3709
3710
3711
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3709

def common_stats
  @common_stats
end

#top_unigram_statsArray<Google::Apis::LanguageV1beta2::XpsStringStatsUnigramStats>

The statistics of the top 20 unigrams, ordered by StringStats.UnigramStats. count. Corresponds to the JSON property topUnigramStats



3715
3716
3717
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3715

def top_unigram_stats
  @top_unigram_stats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3722
3723
3724
3725
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3722

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