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
Mentionwith member variables.Declaration
Swift
public init( entity: String, location: [Int] )Parameters
entityThe name of the entity.
locationAn array of zero-based character offsets that indicate where the entity mentions begin and end in the input text.
Return Value
An initialized
Mention.
View on GitHub
Mention Structure Reference