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
NluEnrichmentSemanticRoles
with member variables.Declaration
Swift
public init( entities: Bool? = nil, keywords: Bool? = nil, limit: Int? = nil )
Parameters
entities
When
true
, entities are extracted from the identified sentence parts.keywords
When
true
, keywords are extracted from the identified sentence parts.limit
The maximum number of semantic roles enrichments to extact from each instance of the specified field.
Return Value
An initialized
NluEnrichmentSemanticRoles
.