KeywordsOptions

public struct KeywordsOptions : Codable, Equatable

Returns important keywords in the content. Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish.

  • Maximum number of keywords to return.

    Declaration

    Swift

    public var limit: Int?
  • Set this to true to return sentiment information for detected keywords.

    Declaration

    Swift

    public var sentiment: Bool?
  • Set this to true to analyze emotion for detected keywords.

    Declaration

    Swift

    public var emotion: Bool?
  • Initialize a KeywordsOptions with member variables.

    Declaration

    Swift

    public init(
        limit: Int? = nil,
        sentiment: Bool? = nil,
        emotion: Bool? = nil
    )

    Parameters

    limit

    Maximum number of keywords to return.

    sentiment

    Set this to true to return sentiment information for detected keywords.

    emotion

    Set this to true to analyze emotion for detected keywords.

    Return Value

    An initialized KeywordsOptions.