simple chatbot implemented in Python using natural language processing techniques. The chatbot utilizes NLTK (Natural Language Toolkit) library for tokenization and similarity calculation. The chatbot is built upon a knowledge base stored in a text file. It reads the file, splitting each line into a question and its corresponding answer pairs.
# swahili-Chatbot-RuleBased
Welcome to the Flask Chatbot repository! This project implements a simple chatbot using Flask and NLTK. The chatbot reads from a dataset to provide responses based on user input.
## Getting Started
To get started with this project, follow these steps:
1. **Clone the repository:**
```bash
github.com
```
2. **Install dependencies:**
```bash
pip install -r requirements.txt
```
3. **Run the Flask application:**
```bash
python app.py
```
## Usage
Once the Flask application is running, you can interact with the chatbot. Open your web browser and go to `
localhost` to access the chat interface.
## Features
- Interactive chat interface
- Responses based on similarity matching using NLTK's Jaccard distance
- Easy to extend with additional dataset
## Contributions
Contributions are welcome! If you find any bugs or want to suggest enhancements, feel free to open an issue or submit a pull request.
## License
This project is licensed under the GPL-2.0 license- see the LICENSE file for details.