lib/purecloud/models/keyword.rb in purecloud-0.50.1 vs lib/purecloud/models/keyword.rb in purecloud-0.51.1
- old
+ new
@@ -32,12 +32,22 @@
attr_accessor :agent_score_modifier
# A modifier to the evaluation score when the phrase is spotted in the customer channel
attr_accessor :customer_score_modifier
+ # Other spellings of the phrase that can be added to reduce missed spots (false negatives).
attr_accessor :alternate_spellings
+ # The phonetic spellings for the phrase and alternate spellings.
+ attr_accessor :pronunciations
+
+ # Words that are similar to the phrase but not desired. Added to reduce incorrect spots (false positives).
+ attr_accessor :anti_words
+
+ # The phonetic spellings for the antiWords.
+ attr_accessor :anti_pronunciations
+
# A prediction of how easy it is to unambiguously spot the keyword within its language based on spelling.
attr_accessor :spotability_index
attr_accessor :margin_of_error
@@ -59,10 +69,16 @@
:'customer_score_modifier' => :'customerScoreModifier',
:'alternate_spellings' => :'alternateSpellings',
+ :'pronunciations' => :'pronunciations',
+
+ :'anti_words' => :'antiWords',
+
+ :'anti_pronunciations' => :'antiPronunciations',
+
:'spotability_index' => :'spotabilityIndex',
:'margin_of_error' => :'marginOfError',
:'pronunciation' => :'pronunciation'
@@ -78,10 +94,13 @@
:'phrase' => :'String',
:'confidence' => :'Integer',
:'agent_score_modifier' => :'Integer',
:'customer_score_modifier' => :'Integer',
:'alternate_spellings' => :'Array<String>',
+ :'pronunciations' => :'Array<String>',
+ :'anti_words' => :'Array<String>',
+ :'anti_pronunciations' => :'Array<String>',
:'spotability_index' => :'Float',
:'margin_of_error' => :'Float',
:'pronunciation' => :'String'
}
@@ -122,10 +141,28 @@
if (value = attributes[:'alternateSpellings']).is_a?(Array)
self.alternate_spellings = value
end
end
+ if attributes[:'pronunciations']
+ if (value = attributes[:'pronunciations']).is_a?(Array)
+ self.pronunciations = value
+ end
+ end
+
+ if attributes[:'antiWords']
+ if (value = attributes[:'antiWords']).is_a?(Array)
+ self.anti_words = value
+ end
+ end
+
+ if attributes[:'antiPronunciations']
+ if (value = attributes[:'antiPronunciations']).is_a?(Array)
+ self.anti_pronunciations = value
+ end
+ end
+
if attributes[:'spotabilityIndex']
self.spotability_index = attributes[:'spotabilityIndex']
end
if attributes[:'marginOfError']
@@ -147,10 +184,13 @@
phrase == o.phrase &&
confidence == o.confidence &&
agent_score_modifier == o.agent_score_modifier &&
customer_score_modifier == o.customer_score_modifier &&
alternate_spellings == o.alternate_spellings &&
+ pronunciations == o.pronunciations &&
+ anti_words == o.anti_words &&
+ anti_pronunciations == o.anti_pronunciations &&
spotability_index == o.spotability_index &&
margin_of_error == o.margin_of_error &&
pronunciation == o.pronunciation
end
@@ -159,10 +199,10 @@
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, name, phrase, confidence, agent_score_modifier, customer_score_modifier, alternate_spellings, spotability_index, margin_of_error, pronunciation].hash
+ [id, name, phrase, confidence, agent_score_modifier, customer_score_modifier, alternate_spellings, pronunciations, anti_words, anti_pronunciations, spotability_index, margin_of_error, pronunciation].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)