EntitiesResult

public struct EntitiesResult : Codable, Equatable

The important people, places, geopolitical entities and other types of entities in your content.

  • Entity type.

    Declaration

    Swift

    public var type: String?
  • The name of the entity.

    Declaration

    Swift

    public var text: String?
  • Relevance score from 0 to 1. Higher values indicate greater relevance.

    Declaration

    Swift

    public var relevance: Double?
  • Confidence in the entity identification from 0 to 1. Higher values indicate higher confidence. In standard entities requests, confidence is returned only for English text. All entities requests that use custom models return the confidence score.

    Declaration

    Swift

    public var confidence: Double?
  • Entity mentions and locations.

    Declaration

    Swift

    public var mentions: [EntityMention]?
  • How many times the entity was mentioned in the text.

    Declaration

    Swift

    public var count: Int?
  • Emotion analysis results for the entity, enabled with the emotion option.

    Declaration

    Swift

    public var emotion: EmotionScores?
  • Sentiment analysis results for the entity, enabled with the sentiment option.

    Declaration

    Swift

    public var sentiment: FeatureSentimentResults?
  • Disambiguation information for the entity.

    Declaration

    Swift

    public var disambiguation: DisambiguationResult?