EnrichmentOptions

public struct EnrichmentOptions : Codable, Equatable

Options which are specific to a particular enrichment.

  • ISO 639-1 code indicating the language to use for the analysis. This code overrides the automatic language detection performed by the service. Valid codes are ar (Arabic), en (English), fr (French), de (German), it (Italian), pt (Portuguese), ru (Russian), es (Spanish), and sv (Swedish). Note: Not all features support all languages, automatic detection is recommended.

    See more

    Declaration

    Swift

    public enum Language : String
  • Object containing Natural Language Understanding features to be used.

    Declaration

    Swift

    public var features: NluEnrichmentFeatures?
  • ISO 639-1 code indicating the language to use for the analysis. This code overrides the automatic language detection performed by the service. Valid codes are ar (Arabic), en (English), fr (French), de (German), it (Italian), pt (Portuguese), ru (Russian), es (Spanish), and sv (Swedish). Note: Not all features support all languages, automatic detection is recommended.

    Declaration

    Swift

    public var language: String?
  • For use with elements enrichments only. The element extraction model to use. The only model available is contract.

    Declaration

    Swift

    public var model: String?
  • Initialize a EnrichmentOptions with member variables.

    Declaration

    Swift

    public init(
        features: NluEnrichmentFeatures? = nil,
        language: String? = nil,
        model: String? = nil
    )

    Parameters

    features

    Object containing Natural Language Understanding features to be used.

    language

    ISO 639-1 code indicating the language to use for the analysis. This code overrides the automatic language detection performed by the service. Valid codes are ar (Arabic), en (English), fr (French), de (German), it (Italian), pt (Portuguese), ru (Russian), es (Spanish), and sv (Swedish). Note: Not all features support all languages, automatic detection is recommended.

    model

    For use with elements enrichments only. The element extraction model to use. The only model available is contract.

    Return Value

    An initialized EnrichmentOptions.