Class ModelsOrchestrerImpl
- java.lang.Object
-
- net.thexcoders.aladin_bot_backend.nlp_models.ModelsOrchestrerImpl
-
- All Implemented Interfaces:
ModelsOrchestrer
public class ModelsOrchestrerImpl extends Object implements ModelsOrchestrer
-
-
Constructor Summary
Constructors Constructor Description ModelsOrchestrerImpl(Categorizer.Language lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CategorizerImpl.CategoryResult>getCategories(String[] input)this method will get all the categories from the user inputs.String[]toSentences(String input)this method will prepare the list of sentences based on the user's input
-
-
-
Constructor Detail
-
ModelsOrchestrerImpl
public ModelsOrchestrerImpl(Categorizer.Language lang)
-
-
Method Detail
-
getCategories
public List<CategorizerImpl.CategoryResult> getCategories(String[] input)
Description copied from interface:ModelsOrchestrerthis method will get all the categories from the user inputs.- Specified by:
getCategoriesin interfaceModelsOrchestrer- Parameters:
input- an array of Strings representing the sentences entered by the user- Returns:
- array of Category Result representing the list of unique categories.
-
toSentences
public String[] toSentences(String input)
Description copied from interface:ModelsOrchestrerthis method will prepare the list of sentences based on the user's input- Specified by:
toSentencesin interfaceModelsOrchestrer- Parameters:
input- String representing user's input- Returns:
- String[] representing an array of sentences.
-
-