public interface IntentPostProcessor
recognizedIntent
.Modifier and Type | Method and Description |
---|---|
default void |
init()
Initializes the post-processor.
|
com.xatkit.intent.RecognizedIntent |
process(com.xatkit.intent.RecognizedIntent recognizedIntent,
XatkitSession session)
Processes the provided
recognizedIntent . |
default void init()
This method is called after the construction of all the post-processors, and can be used to initialize services used by multiple post-processors (e.g. a NLP service that needs to be warmed-up).
Sub-classes should override this method if they need to perform initialization steps that cannot be performed when constructing the post-processor.
com.xatkit.intent.RecognizedIntent process(com.xatkit.intent.RecognizedIntent recognizedIntent, XatkitSession session)
recognizedIntent
.
This method is called with the session
associated to the provided recognizedIntent
in order to
define advanced post-processing functions taking into account session's content.
recognizedIntent
- the RecognizedIntent
to processsession
- the XatkitSession
associated to the recognizedIntent
recognizedIntent
Copyright © 2020 SOM Research Lab. All rights reserved.