NluEnrichmentEmotion

public struct NluEnrichmentEmotion : Codable, Equatable

An object specifying the emotion detection enrichment and related parameters.

  • When true, emotion detection is performed on the entire field.

    Declaration

    Swift

    public var document: Bool?
  • A comma-separated list of target strings that will have any associated emotions detected.

    Declaration

    Swift

    public var targets: [String]?
  • Initialize a NluEnrichmentEmotion with member variables.

    Declaration

    Swift

    public init(
        document: Bool? = nil,
        targets: [String]? = nil
    )

    Parameters

    document

    When true, emotion detection is performed on the entire field.

    targets

    A comma-separated list of target strings that will have any associated emotions detected.

    Return Value

    An initialized NluEnrichmentEmotion.