NLUService
@objc
public protocol NLUService
A simple protocol for NLU services that provide intent classification and slot recognition, either on-device or via a network request.
-
The global configuration for all speech pipeline components.
Declaration
Swift
@objc var configuration: SpeechConfiguration { get set } -
Delegate that receives NLU service events.
Declaration
Swift
@objc var delegates: [SpokestackDelegate] { get set } -
The initializer for the NLU service.
Declaration
Swift
@objc init(_ delegates: [SpokestackDelegate], configuration: SpeechConfiguration) throwsParameters
delegateDelegate that receives NLU service events.
configurationThe global configuration for all speech pipeline components.
-
Classifies a user utterance into an intent, sending the result to the NLUDelegate.
Declaration
Swift
@objc func classify(utterance: String, context: [String : Any])Parameters
utteranceThe user utterance to be classified.
contextAny contextual information that should be sent along with the utterance to assist classification.
View on GitHub
NLUService Protocol Reference