From ab9a339dfae37a237f6ad3910b3d0d1c351bd199 Mon Sep 17 00:00:00 2001 From: Anthony Oliveri Date: Mon, 10 Dec 2018 14:47:49 -0600 Subject: [PATCH] feat(NaturalLanguageUnderstandingV1): Add new count property to KeywordsResult model --- .../Models/KeywordsResult.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/NaturalLanguageUnderstandingV1/Models/KeywordsResult.swift b/Source/NaturalLanguageUnderstandingV1/Models/KeywordsResult.swift index f817427c5..caf41ca75 100644 --- a/Source/NaturalLanguageUnderstandingV1/Models/KeywordsResult.swift +++ b/Source/NaturalLanguageUnderstandingV1/Models/KeywordsResult.swift @@ -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. */ @@ -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"