Views
No views yet
intents.json with possible patterns and responses and re-run the training (see below for more info).conda or venv)1mkdir myproject
2$ cd myproject
3$ python3 -m venv venv. venv/bin/activatevenv\Scripts\activatenltk:pip install nltknltk.tokenize.punkt:
Run this once in your terminal:1$ python
2>>> import nltk
3>>> nltk.download('punkt')python train.pydata.pth file. And then runpython chat.pytag, possible patterns, and possible responses for the chat bot. You have to re-run the training whenever this file is modified.1{
2 "intents": [
3 {
4 "tag": "greeting",
5 "patterns": [
6 "Hi",
7 "Hey",
8 "How are you",
9 "Is anyone there?",
10 "Hello",
11 "Good day"
12 ],
13 "responses": [
14 "Hey :-)",
15 "Hello, thanks for visiting",
16 "Hi there, what can I do for you?",
17 "Hi there, how can I help?"
18 ]
19 },
20 ...
21 ]
22}