EntityMention

public struct EntityMention : Codable, Equatable

EntityMention.

  • Entity mention text.

    Declaration

    Swift

    public var text: String?
  • Character offsets indicating the beginning and end of the mention in the analyzed text.

    Declaration

    Swift

    public var location: [Int]?
  • 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?