public interface NLUService extends AutoCloseable
To participate in Spokestack's NLUManager, an NLUService must have a
constructor that accepts instances of SpeechConfig
and NLUContext.
| Modifier and Type | Method and Description |
|---|---|
AsyncResult<NLUResult> |
classify(String utterance,
NLUContext context)
Classifies a user utterance.
|
closeAsyncResult<NLUResult> classify(String utterance, NLUContext context)
AsyncResult allows the
caller to either block while waiting for a result or register a callback
to be executed when the result is available.utterance - The user utterance to be classified.context - The current NLU context, containing request metadata and
the ability to fire trace events.AsyncResult representing the result of the
classification task.AsyncResult.registerCallback(io.spokestack.spokestack.util.Callback)Copyright © 2021. All rights reserved.