NLUResult
@objc
public class NLUResult : NSObject
A simple data class that represents the result of an utterance classification.
-
The original utterance that was classified.
Declaration
Swift
@objc public var utterance: String -
The intent that the utterance was classified as.
Declaration
Swift
@objc public var intent: String -
Additional context included with the classification results.
Declaration
Swift
@objc public var context: [String : Any] -
The confidence level of the classification result.
Declaration
Swift
@objc public var confidence: Float -
The slot values present in the utterance.
Declaration
Swift
@objc public var slots: [String : Slot]? -
Undocumented
Declaration
Swift
public override var description: String { get } -
The initializer for the NLU result.
Declaration
Swift
public init(utterance: String, intent: String, context: [String : Any] = [:], confidence: Float, slots: [String : Slot]?)Parameters
utteranceThe original utterance that was classified.
intentThe intent that the utterance was classified as.
contextAdditional context included with the classification results.
confidenceThe confidence level of the classification result.
slotsThe slot values present in the utterance.
-
The initializer for the NLU result.
Declaration
Swift
public init(utterance: String, intent: String, context: [String : Any] = [:], confidence: Float)Parameters
utteranceThe original utterance that was classified.
intentThe intent that the utterance was classified as.
contextAdditional context included with the classification results.
confidenceThe confidence level of the classification result.
slotsThe slot values present in the utterance.
View on GitHub
NLUResult Class Reference