nlu classifiers - socrob/mbot_documentation GitHub Wiki

Classifiers are downloaded automatically during NLU setup by the download_classifiers.sh file. This is triggered during setup in this line.

We manage our classifiers in dantecloud, specifically the nlu_classifiers folder, available with the following login:

  • User: socrob
  • Password: strcat(old_password, new_password) (ask Oscar or Guilherme)

Add a classifier

Train the network, see nlu-training.

Your classifier should be in a tree such as:

root
     | - CLASSIFIER_NAME
           | - intent
           | - slots

Go to root and compress classifier as:

tar -zvcf CLASSIFIER_NAME.tar.gz CLASSIFIER_NAME

Upload the resulting file to cloud, share as link, copy link and place in this file, as:

n CLASSIFIER_NAME URL/download

where n is a number and you need to add /download after the URL from dantecloud.

Change default classifier

  1. Change to download your setup by modifying this line (the classifier number at the end)
  2. Change the default classifier used in the NLU node
  3. Add the dictionary (which you used to train the classifiers) to this location
  4. Change the default dictionary used in the NLU node