RuntimeEntityAlternative

public struct RuntimeEntityAlternative : Codable, Equatable

An alternative value for the recognized entity.

  • The entity value that was recognized in the user input.

    Declaration

    Swift

    public var value: String?
  • A decimal percentage that represents Watson’s confidence in the recognized entity.

    Declaration

    Swift

    public var confidence: Double?
  • Initialize a RuntimeEntityAlternative with member variables.

    Declaration

    Swift

    public init(
        value: String? = nil,
        confidence: Double? = nil
    )

    Parameters

    value

    The entity value that was recognized in the user input.

    confidence

    A decimal percentage that represents Watson’s confidence in the recognized entity.

    Return Value

    An initialized RuntimeEntityAlternative.