Class: Google::Apis::LanguageV2::XpsSpeechEvaluationMetricsSubModelEvaluationMetric

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsSpeechEvaluationMetricsSubModelEvaluationMetric

Returns a new instance of XpsSpeechEvaluationMetricsSubModelEvaluationMetric.



3202
3203
3204
# File 'lib/google/apis/language_v2/classes.rb', line 3202

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

Instance Attribute Details

#biasing_model_typeString

Type of the biasing model. Corresponds to the JSON property biasingModelType

Returns:

  • (String)


3159
3160
3161
# File 'lib/google/apis/language_v2/classes.rb', line 3159

def biasing_model_type
  @biasing_model_type
end

#is_enhanced_modelBoolean Also known as: is_enhanced_model?

If true then it means we have an enhanced version of the biasing models. Corresponds to the JSON property isEnhancedModel

Returns:

  • (Boolean)


3164
3165
3166
# File 'lib/google/apis/language_v2/classes.rb', line 3164

def is_enhanced_model
  @is_enhanced_model
end

#num_deletionsFixnum

Corresponds to the JSON property numDeletions

Returns:

  • (Fixnum)


3170
3171
3172
# File 'lib/google/apis/language_v2/classes.rb', line 3170

def num_deletions
  @num_deletions
end

#num_insertionsFixnum

Corresponds to the JSON property numInsertions

Returns:

  • (Fixnum)


3175
3176
3177
# File 'lib/google/apis/language_v2/classes.rb', line 3175

def num_insertions
  @num_insertions
end

#num_substitutionsFixnum

Corresponds to the JSON property numSubstitutions

Returns:

  • (Fixnum)


3180
3181
3182
# File 'lib/google/apis/language_v2/classes.rb', line 3180

def num_substitutions
  @num_substitutions
end

#num_utterancesFixnum

Number of utterances used in the wer computation. Corresponds to the JSON property numUtterances

Returns:

  • (Fixnum)


3185
3186
3187
# File 'lib/google/apis/language_v2/classes.rb', line 3185

def num_utterances
  @num_utterances
end

#num_wordsFixnum

Number of words over which the word error rate was computed. Corresponds to the JSON property numWords

Returns:

  • (Fixnum)


3190
3191
3192
# File 'lib/google/apis/language_v2/classes.rb', line 3190

def num_words
  @num_words
end

#sentence_accuracyFloat

Below fields are used for debugging purposes Corresponds to the JSON property sentenceAccuracy

Returns:

  • (Float)


3195
3196
3197
# File 'lib/google/apis/language_v2/classes.rb', line 3195

def sentence_accuracy
  @sentence_accuracy
end

#werFloat

Word error rate (standard error metric used for speech recognition). Corresponds to the JSON property wer

Returns:

  • (Float)


3200
3201
3202
# File 'lib/google/apis/language_v2/classes.rb', line 3200

def wer
  @wer
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
# File 'lib/google/apis/language_v2/classes.rb', line 3207

def update!(**args)
  @biasing_model_type = args[:biasing_model_type] if args.key?(:biasing_model_type)
  @is_enhanced_model = args[:is_enhanced_model] if args.key?(:is_enhanced_model)
  @num_deletions = args[:num_deletions] if args.key?(:num_deletions)
  @num_insertions = args[:num_insertions] if args.key?(:num_insertions)
  @num_substitutions = args[:num_substitutions] if args.key?(:num_substitutions)
  @num_utterances = args[:num_utterances] if args.key?(:num_utterances)
  @num_words = args[:num_words] if args.key?(:num_words)
  @sentence_accuracy = args[:sentence_accuracy] if args.key?(:sentence_accuracy)
  @wer = args[:wer] if args.key?(:wer)
end