https://github.com/rogendo/simple-chatbot
This is a simple chatbot using python Natural Language Tool Kit
https://github.com/rogendo/simple-chatbot
chatbot nltk-python
Last synced: 3 months ago
JSON representation
This is a simple chatbot using python Natural Language Tool Kit
- Host: GitHub
- URL: https://github.com/rogendo/simple-chatbot
- Owner: Rogendo
- Created: 2023-01-24T18:47:59.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T18:52:02.000Z (over 2 years ago)
- Last Synced: 2025-01-08T23:44:04.733Z (5 months ago)
- Topics: chatbot, nltk-python
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simple-chatbot
This chatbot uses the Chat class from the nltk.chat.util module. It takes in a list of pairs,
where each pair consists of a regular expression pattern to match user input and a list of responses.
The reflections dictionary is used to handle basic user input like "I am" or "I'm".When the chatbot is run, it will continuously prompt the user for input and match it against the patterns
in the pairs list.
When a match is found, the chatbot will respond with one of the responses in the corresponding list.
The chatbot will continue until the user inputs "quit" or the conversation is ended by the user.