Class 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 Detail

      • LangDetectorImpl

        public LangDetectorImpl()
    • 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:
        detectLang in interface LangDetector
        Parameters:
        input - a String value representing the input of the user
        Returns:
        String value of the language detected.