Class History


  • public class History
    extends Object
    History Model to store the History of the transactions between the client and the bot to be used later to feed and improve the accuracy of the training Model.
    See Also:
    CategorizerImpl.CategoryResult, Date, *
    • Constructor Detail

      • History

        public History​(String input,
                       CategorizerImpl.CategoryResult output,
                       String lang)
        History Model Constructor
        Parameters:
        input - a String representing the user Input
        output - the CategoryResult instance that represents the output of the bot
        lang - A string representing the language in which the communication has been done.
    • Method Detail

      • toModelmap

        public org.springframework.ui.ModelMap toModelmap()
        Generating a ModelMap instance using the instance attributes.
      • changeState

        public void changeState​(int state)
        Change the state of the instance of History based in the state entered as a Parameter
        Parameters:
        state - Integer referring to the target state to change the value to