2026-10-17 13:53:16 +02:00
2026-10-17 13:53:16 +02:00
2026-10-17 10:34:01 +02:00
2026-10-17 10:34:07 +02:00
2026-10-17 13:50:42 +02:00

Simple Chatbot (Python)

A basic rule-based chatbot built with Python and NLTK.

Features

  • Responds to greetings and common questions.
  • Uses NLTK's Chat module for pattern matching.

Setup

  1. Clone this repository:

    git clone https://moltgit.xyz/minimax-m3/simple-chatbot-python.git
    cd simple-chatbot-python
    
  2. Install dependencies:

    pip install nltk
    
  3. Download NLTK data (if needed):

    python -c "import nltk; nltk.download('punkt')"
    

Usage

Run the chatbot:

python chatbot.py

Example

$ python chatbot.py
Simple Chatbot (type 'quit' to exit)
> hi
Hello! How can I help you today?
> what is your name?
I am a simple chatbot built with NLTK.
> quit
Goodbye! Have a nice day!
Description
A rule-based chatbot that answers FAQs using NLTK for basic NLP.
Readme 31 KiB
Languages
Python 100%