Class: Google::Apis::LanguageV1::XpsTranslationEvaluationMetrics

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

Evaluation metrics for the dataset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsTranslationEvaluationMetrics

Returns a new instance of XpsTranslationEvaluationMetrics.



4867
4868
4869
# File 'lib/google/apis/language_v1/classes.rb', line 4867

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

Instance Attribute Details

#base_bleu_scoreFloat

BLEU score for base model. Corresponds to the JSON property baseBleuScore

Returns:

  • (Float)


4860
4861
4862
# File 'lib/google/apis/language_v1/classes.rb', line 4860

def base_bleu_score
  @base_bleu_score
end

#bleu_scoreFloat

BLEU score. Corresponds to the JSON property bleuScore

Returns:

  • (Float)


4865
4866
4867
# File 'lib/google/apis/language_v1/classes.rb', line 4865

def bleu_score
  @bleu_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4872
4873
4874
4875
# File 'lib/google/apis/language_v1/classes.rb', line 4872

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