TelegramChatBot

所属分类:自然语言处理
开发工具:Jupyter Notebook
文件大小:12KB
下载次数:0
上传日期:2022-12-08 09:46:03
上 传 者sh-1993
说明:  一个简单的电报聊天机器人回答您的软件编程问题。
(A simple Telegram Chatbot answering your software programming questions.)

文件列表:
data (0, 2020-05-05)
data\dialogues.tsv.gz (132, 2020-05-05)
data\ss_embeddings.tsv.gz (133, 2020-05-05)
data\tagged_posts.tsv.gz (133, 2020-05-05)
dialogue_manager.py (3256, 2020-05-05)
main_bot.py (3298, 2020-05-05)
models.ipynb (21723, 2020-05-05)
requirements.txt (967, 2020-05-05)
utils.py (1925, 2020-05-05)

# Telegram Chatbot This project combine different concepts learned about [Natural Language Processing](https://www.coursera.org/learn/language-processing) into a simple dialog chatbot capable of: * Answering user software-programming-related questions (using StackOverflow dataset); * Chit-chatting and simulating a dialogue on all non-programming-related questions. The chit-chat mode uses a pre-trained Neural Network Engine available from [ChatterBot](https://chatterbot.readthedocs.io/en/stable/). ## Install requirements The project is developed entirely in Python3 and depends on some external libraries. Once you cloned the git repository on your local computer, please follow these instructions to install the dependencies: ``` python3 -m virtualenv venv source venv/bin/activate pip install -r requirements.txt ``` ## Unzip data Data are distributed for user's convinience in compressed format. To uncompress the files: ``` gzip -r -d data/ ``` ## Generate models Open and execute the `models.ipynb` notebook in order to train and export the Machine Learning models that power the ChatBot. ## Telegram token The chatbot is integrated with the Telegram messenger and need a token to run. Talk to @BotFather in Telegram. The command "/newbot" will create a bot for you. You will be prompted to enter a name and a username for your bot. After that, you will be given a token. Then you can activate your chatbot by typing: ``` python3 main_bot.py --token=YOUR_TOKEN ``` You can now talk to this bot in Telegram (make sure to talk via the messenger, not via your console).

近期下载者

相关文件


收藏者