This should be in format like:
{"intents": [
{"tag": "greeting",
"patterns": ["Hi", "How are you", "Is anyone there?", "Hello", "Good day", "Whats up"],
"responses": ["Hello!", "Good to see you again!", "Hi there, how can I help?"],
"context_set": ""
}
]
}
-
Open terminal
-
pip install -r requirement.txt
-
python model.py --data_path data/intents.json --model_path model/ --save_parameter parameter/parameter.pkl
(data_path, model_path, save_parameter are optional you can change it in the code in default option) -
If you training for the first time :
python model.py --data_path data/intents.json --model_path model/ --save_parameter parameter/parameter.pkl
- it will create a model and parameter file -
If files are already there then it will start conversation with Chat-Bot using same command as mentioned above.