Class: Google::Apis::CommentanalyzerV1alpha1::AttributeScores
- Inherits:
-
Object
- Object
- Google::Apis::CommentanalyzerV1alpha1::AttributeScores
- Defined in:
- generated/google/apis/commentanalyzer_v1alpha1/classes.rb,
generated/google/apis/commentanalyzer_v1alpha1/representations.rb,
generated/google/apis/commentanalyzer_v1alpha1/representations.rb
Overview
This holds score values for a single attribute. It contains both per-span scores as well as an overall summary score..
Instance Attribute Summary collapse
-
#span_scores ⇒ Array<Google::Apis::CommentanalyzerV1alpha1::SpanScore>
Per-span scores.
-
#summary_score ⇒ Google::Apis::CommentanalyzerV1alpha1::Score
Analysis scores are described by a value and a ScoreType.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttributeScores
constructor
A new instance of AttributeScores.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AttributeScores
Returns a new instance of AttributeScores.
239 240 241 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 239 def initialize(**args) update!(**args) end |
Instance Attribute Details
#span_scores ⇒ Array<Google::Apis::CommentanalyzerV1alpha1::SpanScore>
Per-span scores.
Corresponds to the JSON property spanScores
232 233 234 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 232 def span_scores @span_scores end |
#summary_score ⇒ Google::Apis::CommentanalyzerV1alpha1::Score
Analysis scores are described by a value and a ScoreType.
Corresponds to the JSON property summaryScore
237 238 239 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 237 def summary_score @summary_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
244 245 246 247 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 244 def update!(**args) @span_scores = args[:span_scores] if args.key?(:span_scores) @summary_score = args[:summary_score] if args.key?(:summary_score) end |