NluEnrichmentKeywords

public struct NluEnrichmentKeywords : Codable, Equatable

An object specifying the Keyword enrichment and related parameters.

  • When true, sentiment analysis of keywords will be performed on the specified field.

    Declaration

    Swift

    public var sentiment: Bool?
  • When true, emotion detection of keywords will be performed on the specified field.

    Declaration

    Swift

    public var emotion: Bool?
  • The maximum number of keywords to extract for each instance of the specified field.

    Declaration

    Swift

    public var limit: Int?
  • Initialize a NluEnrichmentKeywords with member variables.

    Declaration

    Swift

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

    Parameters

    sentiment

    When true, sentiment analysis of keywords will be performed on the specified field.

    emotion

    When true, emotion detection of keywords will be performed on the specified field.

    limit

    The maximum number of keywords to extract for each instance of the specified field.

    Return Value

    An initialized NluEnrichmentKeywords.