NluEnrichmentSentiment

public struct NluEnrichmentSentiment : Codable, Equatable

An object specifying the sentiment extraction enrichment and related parameters.

  • When true, sentiment analysis is performed on the entire field.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Parameters

    document

    When true, sentiment analysis is performed on the entire field.

    targets

    A comma-separated list of target strings that will have any associated sentiment analyzed.

    Return Value

    An initialized NluEnrichmentSentiment.