This repository contains a simple Wikipedia bot that utilizes the Wikipedia library, scikit-learn (sklearn), and NLTK (Natural Language Toolkit). The bot is designed to provide information on a specific subject, as requested by the user.
- You provide a subject to the bot.
- The bot asks the user, "What do you want to know about the {subject}?"
- It then uses the Wikipedia library to fetch relevant information.
- The bot provides the user with the answer to their question.
Before you can run the Wikipedia bot, make sure you have the following libraries installed:
- Clone this repository to your local machine.
- Install the required libraries using the links provided in the "Prerequisites" section.
- Run the bot script.
- Provide a subject when prompted.
- Ask the bot a question about the subject, and it will provide you with information from Wikipedia.
python wikipedia_bot.py
# Bot: Please provide a subject:
# User: Elephants
# Bot: What do you want to know about elephants?
# User: How much do elephants weigh?
# Bot: Elephants can weigh up to 12,000 pounds.
This project is licensed under the MIT License. You are free to use and modify the code for your own purposes.