Mention

public struct Mention : Codable, Equatable

A mention of a contextual entity.

  • The name of the entity.

    Declaration

    Swift

    public var entity: 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]
  • Initialize a Mention with member variables.

    Declaration

    Swift

    public init(
        entity: String,
        location: [Int]
    )

    Parameters

    entity

    The name of the entity.

    location

    An array of zero-based character offsets that indicate where the entity mentions begin and end in the input text.

    Return Value

    An initialized Mention.