Skip to content

Commit

Permalink
feat(NaturalLanguageUnderstandingV1): Add new count property to Keywo…
Browse files Browse the repository at this point in the history
…rdsResult model
  • Loading branch information
Anthony Oliveri committed Dec 11, 2018
1 parent 5bf6637 commit ab9a339
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ import Foundation
*/
public struct KeywordsResult: Codable, Equatable {

/**
Number of times the keyword appears in the analyzed text.
*/
public var count: Int?

/**
Relevance score from 0 to 1. Higher values indicate greater relevance.
*/
Expand All @@ -43,6 +48,7 @@ public struct KeywordsResult: Codable, Equatable {

// Map each property name to the key that shall be used for encoding/decoding.
private enum CodingKeys: String, CodingKey {
case count = "count"
case relevance = "relevance"
case text = "text"
case emotion = "emotion"
Expand Down

0 comments on commit ab9a339

Please sign in to comment.