ToneScore
public struct ToneScore : Codable, Equatable
The score for a tone from the input content.
-
The score for the tone.
2017-09-21
: The score that is returned lies in the range of 0.5 to 1. A score greater than 0.75 indicates a high likelihood that the tone is perceived in the content.2016-05-19
: The score that is returned lies in the range of 0 to 1. A score less than 0.5 indicates that the tone is unlikely to be perceived in the content; a score greater than 0.75 indicates a high likelihood that the tone is perceived.
Declaration
Swift
public var score: Double
-
The unique, non-localized identifier of the tone.
2017-09-21
: The service can return results for the following tone IDs:anger
,fear
,joy
, andsadness
(emotional tones);analytical
,confident
, andtentative
(language tones). The service returns results only for tones whose scores meet a minimum threshold of 0.5.2016-05-19
: The service can return results for the following tone IDs of the different categories: for theemotion
category:anger
,disgust
,fear
,joy
, andsadness
; for thelanguage
category:analytical
,confident
, andtentative
; for thesocial
category:openness_big5
,conscientiousness_big5
,extraversion_big5
,agreeableness_big5
, andemotional_range_big5
. The service returns scores for all tones of a category, regardless of their values.
Declaration
Swift
public var toneID: String
-
The user-visible, localized name of the tone.
Declaration
Swift
public var toneName: String