NluEnrichmentEntities
public struct NluEnrichmentEntities : Codable, Equatable
An object speficying the Entities enrichment and related parameters.
-
When
true, sentiment analysis of entities will be performed on the specified field.Declaration
Swift
public var sentiment: Bool? -
When
true, emotion detection of entities will be performed on the specified field.Declaration
Swift
public var emotion: Bool? -
The maximum number of entities to extract for each instance of the specified field.
Declaration
Swift
public var limit: Int? -
When
true, the number of mentions of each identified entity is recorded. The default isfalse.Declaration
Swift
public var mentions: Bool? -
When
true, the types of mentions for each idetifieid entity is recorded. The default isfalse.Declaration
Swift
public var mentionTypes: Bool? -
When
true, a list of sentence locations for each instance of each identified entity is recorded. The default isfalse.Declaration
Swift
public var sentenceLocations: Bool? -
The enrichement model to use with entity extraction. May be a custom model provided by Watson Knowledge Studio, or the default public model
alchemy.Declaration
Swift
public var model: String? -
Initialize a
NluEnrichmentEntitieswith member variables.Declaration
Swift
public init( sentiment: Bool? = nil, emotion: Bool? = nil, limit: Int? = nil, mentions: Bool? = nil, mentionTypes: Bool? = nil, sentenceLocations: Bool? = nil, model: String? = nil )Parameters
sentimentWhen
true, sentiment analysis of entities will be performed on the specified field.emotionWhen
true, emotion detection of entities will be performed on the specified field.limitThe maximum number of entities to extract for each instance of the specified field.
mentionsWhen
true, the number of mentions of each identified entity is recorded. The default isfalse.mentionTypesWhen
true, the types of mentions for each idetifieid entity is recorded. The default isfalse.sentenceLocationsWhen
true, a list of sentence locations for each instance of each identified entity is recorded. The default isfalse.modelThe enrichement model to use with entity extraction. May be a custom model provided by Watson Knowledge Studio, or the default public model
alchemy.Return Value
An initialized
NluEnrichmentEntities.
View on GitHub
NluEnrichmentEntities Structure Reference