EntityMention

public struct EntityMention : Codable, Equatable

An object describing a contextual entity mention.

  • The text of the user input example.

    Declaration

    Swift

    public var text: String
  • The name of the intent.

    Declaration

    Swift

    public var intent: String
  • An array of zero-based character offsets that indicate where the entity mentions begin and end in the input text.

    Declaration

    Swift

    public var location: [Int]