public interface InputPreProcessor
input
.Modifier and Type | Method and Description |
---|---|
default void |
init()
Initializes the pre-processor.
|
String |
process(String input,
XatkitSession session)
Processes the provided
input . |
default void init()
This method is called after the construction of all the pre-processors, and can be used to initialize services used by multiple pre-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 pre-processors.
String process(String input, XatkitSession session)
input
.
This method is called with the session
associated to the provided input
in order to define
advanced pre-processing functions taking into account session's content.
input
- the input to processsession
- the XatkitSession
associated to the input
input
Copyright © 2020 SOM Research Lab. All rights reserved.