//Chatbot answer -> Nonsense to NLP model public OffensivenessModelRequest(ChatbotGivesAnswerModelToServer item, ChatbotGivesAnswersToQuestionsToServer chatbotGivesAnswersToQuestionsToServer) { this.question = item.answer; this.question_id = item.question_id; this.msg_id = ServerUtilities.getAndGenerateMsgIDForGivenAnswer(chatbotGivesAnswersToQuestionsToServer.user_id, item.answer, item.question_id); //TODO: what should this be? this.action = "IS_NONSENSE".ToLower(); }
public static OffensivenessModelRequest ProcessChatbotReceiveAnswer(ChatbotGivesAnswerModelToServer item, ChatbotGivesAnswersToQuestionsToServer chatbotGivesAnswersToQuestionsToServer) { return(new OffensivenessModelRequest(item, chatbotGivesAnswersToQuestionsToServer)); }