NluEnrichmentSemanticRoles
public struct NluEnrichmentSemanticRoles : Codable, Equatable
An object specifiying the semantic roles enrichment and related parameters.
-
When
true, entities are extracted from the identified sentence parts.Declaration
Swift
public var entities: Bool? -
When
true, keywords are extracted from the identified sentence parts.Declaration
Swift
public var keywords: Bool? -
The maximum number of semantic roles enrichments to extact from each instance of the specified field.
Declaration
Swift
public var limit: Int? -
Initialize a
NluEnrichmentSemanticRoleswith member variables.Declaration
Swift
public init( entities: Bool? = nil, keywords: Bool? = nil, limit: Int? = nil )Parameters
entitiesWhen
true, entities are extracted from the identified sentence parts.keywordsWhen
true, keywords are extracted from the identified sentence parts.limitThe maximum number of semantic roles enrichments to extact from each instance of the specified field.
Return Value
An initialized
NluEnrichmentSemanticRoles.
View on GitHub
NluEnrichmentSemanticRoles Structure Reference