An easy-to-use intent classifier Python Interface using Naive Bayes Classifier from Textblob
{
"name": (name of intent),
"utterances": [(list of training phrases)],
"responses": [(list of responses)]
}
{
"tests": [
{
"utterance": (phrase for test),
"intent": (intent name)
},
{
(other testing data)
} ...]
}
r = IntentClassifier()
r.train()
- make sure your data folder contains the training data
r.test()
- make sure your text folder contains the testing data
r.classify(text)
r.response(text)