Permalink
Browse files

feat(ToneAnalyzer): Add `ToneID` options to `ToneChatScore`

  • Loading branch information...
AnthonyOliveri committed Oct 9, 2018
1 parent e09de03 commit ac75c929cd20c19da49409fd7fe46004d72dbe82
Showing with 14 additions and 0 deletions.
  1. +14 −0 Source/ToneAnalyzerV3/Models/ToneChatScore.swift
@@ -19,6 +19,20 @@ import Foundation
/** ToneChatScore. */
public struct ToneChatScore: Decodable {
/**
The unique, non-localized identifier of the tone for the results. The service returns results only for tones whose
scores meet a minimum threshold of 0.5.
*/
public enum ToneID: String {
case excited = "excited"
case frustrated = "frustrated"
case impolite = "impolite"
case polite = "polite"
case sad = "sad"
case satisfied = "satisfied"
case sympathetic = "sympathetic"
}
/**
The score for the tone 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 utterance.

0 comments on commit ac75c92

Please sign in to comment.