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
trueto return keyword information for subjects and objects.Declaration
Swift
public var keywords: Bool? -
Set this to
trueto return entity information for subjects and objects.Declaration
Swift
public var entities: Bool? -
Initialize a
SemanticRolesOptionswith member variables.Declaration
Swift
public init( limit: Int? = nil, keywords: Bool? = nil, entities: Bool? = nil )Parameters
limitMaximum number of semantic_roles results to return.
keywordsSet this to
trueto return keyword information for subjects and objects.entitiesSet this to
trueto return entity information for subjects and objects.Return Value
An initialized
SemanticRolesOptions.
View on GitHub
SemanticRolesOptions Structure Reference