Class LangDetectorImpl
- java.lang.Object
-
- net.thexcoders.aladin_bot_backend.nlp_models.NLPModel
-
- net.thexcoders.aladin_bot_backend.nlp_models.language.LangDetectorImpl
-
- All Implemented Interfaces:
LangDetector
public class LangDetectorImpl extends NLPModel implements LangDetector
This class is used to determine the language in which the user is communicating. The language will be used for determining the language of the bot response.
-
-
Constructor Summary
Constructors Constructor Description LangDetectorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdetectLang(String input)detects the language of the message and prints into the logs the value and the precision of the detection.-
Methods inherited from class net.thexcoders.aladin_bot_backend.nlp_models.NLPModel
fileExists, generateFile
-
-
-
-
Method Detail
-
detectLang
public String detectLang(String input)
detects the language of the message and prints into the logs the value and the precision of the detection.- Specified by:
detectLangin interfaceLangDetector- Parameters:
input- a String value representing the input of the user- Returns:
- String value of the language detected.
-
-