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
See morear(Arabic),en(English),fr(French),de(German),it(Italian),pt(Portuguese),ru(Russian),es(Spanish), andsv(Swedish). Note: Not all features support all languages, automatic detection is recommended.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), andsv(Swedish). Note: Not all features support all languages, automatic detection is recommended.Declaration
Swift
public var language: String? -
For use with
elementsenrichments only. The element extraction model to use. The only model available iscontract.Declaration
Swift
public var model: String? -
Initialize a
EnrichmentOptionswith member variables.Declaration
Swift
public init( features: NluEnrichmentFeatures? = nil, language: String? = nil, model: String? = nil )Parameters
featuresObject containing Natural Language Understanding features to be used.
languageISO 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), andsv(Swedish). Note: Not all features support all languages, automatic detection is recommended.modelFor use with
elementsenrichments only. The element extraction model to use. The only model available iscontract.Return Value
An initialized
EnrichmentOptions.
View on GitHub
EnrichmentOptions Structure Reference