Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jalfr3d/wikipedia-chatbot
Simple wiki chatbot without UI
https://github.com/jalfr3d/wikipedia-chatbot
chatbot-python machine-learning nltk-python python python-bot scikit-learn wikipedia-chatbot wikipedia-library
Last synced: about 2 months ago
JSON representation
Simple wiki chatbot without UI
- Host: GitHub
- URL: https://github.com/jalfr3d/wikipedia-chatbot
- Owner: jalfr3d
- License: mit
- Created: 2023-07-18T21:45:44.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-21T18:56:14.000Z (about 1 year ago)
- Last Synced: 2023-11-21T19:44:30.765Z (about 1 year ago)
- Topics: chatbot-python, machine-learning, nltk-python, python, python-bot, scikit-learn, wikipedia-chatbot, wikipedia-library
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wikipedia Bot
## Overview
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.
## How It Works
1. You provide a subject to the bot.
2. The bot asks the user, "What do you want to know about the {subject}?"
3. It then uses the Wikipedia library to fetch relevant information.
4. The bot provides the user with the answer to their question.## Prerequisites
Before you can run the Wikipedia bot, make sure you have the following libraries installed:
- [Wikipedia library](https://pypi.org/project/wikipedia-api/)
- [scikit-learn](https://scikit-learn.org/stable/install.html)
- [NLTK (Natural Language Toolkit)](https://www.nltk.org/install.html)## Usage
1. Clone this repository to your local machine.
2. Install the required libraries using the links provided in the "Prerequisites" section.
3. Run the bot script.
4. Provide a subject when prompted.
5. Ask the bot a question about the subject, and it will provide you with information from Wikipedia.## Example
```python
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.
```## License
This project is licensed under the MIT License. You are free to use and modify the code for your own purposes.