WitEntity
public struct WitEntity : Codable
An entity found in an outcome.
-
The value found in the entity. For example: ‘Schwedenplatz’.
Declaration
Swift
public var value: String -
The name of the entity. For example: ‘vienna_public_transport_station’.
Declaration
Swift
public var _entity: String -
The role of the entity, useful when the same type of entity can be used in a sentence. For example: ‘to’ or ‘from’
Declaration
Swift
public var _role: String? -
The confidence that the entity is correct. Currently unused in clients, but included for possible future use.
Declaration
Swift
public let confidence: Float? -
Declaration
Swift
public init(from decoder: Decoder) throws
WitEntity Structure Reference