SemanticRolesOptions
public struct SemanticRolesOptions : Codable, Equatable
Parses sentences into subject, action, and object form. Supported languages: English, German, Japanese, Korean, Spanish.
-
Maximum number of semantic_roles results to return.
Declaration
Swift
public var limit: Int?
-
Set this to
true
to return keyword information for subjects and objects.Declaration
Swift
public var keywords: Bool?
-
Set this to
true
to return entity information for subjects and objects.Declaration
Swift
public var entities: Bool?
-
Initialize a
SemanticRolesOptions
with member variables.Declaration
Swift
public init( limit: Int? = nil, keywords: Bool? = nil, entities: Bool? = nil )
Parameters
limit
Maximum number of semantic_roles results to return.
keywords
Set this to
true
to return keyword information for subjects and objects.entities
Set this to
true
to return entity information for subjects and objects.Return Value
An initialized
SemanticRolesOptions
.