//NLP Nonsense -> NLP Offense model public OffensivenessModelRequest(NewQuestionNonsenseCheck newQuestionNonsenseCheck) { this.question = newQuestionNonsenseCheck.question; this.question_id = newQuestionNonsenseCheck.question_id; this.msg_id = ServerUtilities.getAndGenerateMsgIDForGivenQuestion(newQuestionNonsenseCheck.user_id, newQuestionNonsenseCheck.question, newQuestionNonsenseCheck.question_id); this.action = "ESTIMATE_OFFENSIVENESS".ToLower(); }
//Chatbot Question -> NLP Nonsense model public OffensivenessModelRequest(ChatbotNewQuestionModel chatbotNewQuestionModel) { this.question = chatbotNewQuestionModel.question; this.question_id = chatbotNewQuestionModel.chatbot_temp_id; this.msg_id = ServerUtilities.getAndGenerateMsgIDForGivenQuestion(chatbotNewQuestionModel.user_id, chatbotNewQuestionModel.question, chatbotNewQuestionModel.chatbot_temp_id); this.action = "IS_NONSENSE".ToLower(); }