public static class TensorflowNLU.Builder extends Object
| Constructor and Description |
|---|
Builder()
Creates a new builder instance.
|
| Modifier and Type | Method and Description |
|---|---|
TensorflowNLU.Builder |
addTraceListener(TraceListener listener)
Adds a trace listener to receive events from the NLU system.
|
TensorflowNLU |
build()
Create a new NLU instance, automatically loading the TensorFlow model
metadata in the background.
|
TensorflowNLU.Builder |
registerSlotParser(String slotType,
String parserClass)
Register a custom parser for a slot of a specified type.
|
TensorflowNLU.Builder |
setConfig(SpeechConfig value)
Attaches a configuration object, overwriting any existing
configuration.
|
TensorflowNLU.Builder |
setProperty(String key,
Object value)
Sets a configuration value.
|
public TensorflowNLU.Builder setConfig(SpeechConfig value)
value - configuration to attachpublic TensorflowNLU.Builder setProperty(String key, Object value)
key - configuration property namevalue - property valuepublic TensorflowNLU.Builder registerSlotParser(String slotType, String parserClass)
slotType - The type of slot that should be parsed by parserClass.parserClass - The name of the class responsible for parsing
slots of slotType.public TensorflowNLU.Builder addTraceListener(TraceListener listener)
listener - the listener to registerpublic TensorflowNLU build()
TraceListeners.TensorflowNLU instanceCopyright © 2021. All rights reserved.