EntitiesOptions
public struct EntitiesOptions : Codable, Equatable
Identifies people, cities, organizations, and other entities in the content. For more information, see Entity types and subtypes. Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish. Arabic, Chinese, and Dutch are supported only through custom models.
-
Maximum number of entities to return.
Declaration
Swift
public var limit: Int? -
Set this to
trueto return locations of entity mentions.Declaration
Swift
public var mentions: Bool? -
Enter a custom model ID to override the standard entity detection model.
Declaration
Swift
public var model: String? -
Set this to
trueto return sentiment information for detected entities.Declaration
Swift
public var sentiment: Bool? -
Set this to
trueto analyze emotion for detected keywords.Declaration
Swift
public var emotion: Bool? -
Initialize a
EntitiesOptionswith member variables.Declaration
Swift
public init( limit: Int? = nil, mentions: Bool? = nil, model: String? = nil, sentiment: Bool? = nil, emotion: Bool? = nil )Parameters
limitMaximum number of entities to return.
mentionsSet this to
trueto return locations of entity mentions.modelEnter a custom model ID to override the standard entity detection model.
sentimentSet this to
trueto return sentiment information for detected entities.emotionSet this to
trueto analyze emotion for detected keywords.Return Value
An initialized
EntitiesOptions.
View on GitHub
EntitiesOptions Structure Reference