Chatbot

所属分类:教育系统应用
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2023-07-19 22:09:56
上 传 者sh-1993
说明:  我的荣誉项目:一个聊天机器人,可以回答编程问题,以帮助学生。
(My Honours project: a chatbot which can answer programming questions to help students.)

文件列表:
.codecov.yml (904, 2019-05-23)
.flaskenv (40, 2019-05-23)
.travis.yml (334, 2019-05-23)
LICENSE (1075, 2019-05-23)
chatbot/ (0, 2019-05-23)
chatbot/__init__.py (3900, 2019-05-23)
chatbot/bot.py (4108, 2019-05-23)
chatbot/cli_interface.py (2024, 2019-05-23)
chatbot/config.py (165, 2019-05-23)
chatbot/constants.py (2119, 2019-05-23)
chatbot/crawler.py (6826, 2019-05-23)
chatbot/holder.py (262, 2019-05-23)
chatbot/logic.py (6714, 2019-05-23)
chatbot/models.py (2581, 2019-05-23)
chatbot/run_it.py (122, 2019-05-23)
chatbot/static/ (0, 2019-05-23)
chatbot/static/css/ (0, 2019-05-23)
chatbot/static/css/bootstrap.min.css (183229, 2019-05-23)
chatbot/static/css/github.css (1147, 2019-05-23)
chatbot/static/css/hljs.css (1159, 2019-05-23)
chatbot/static/css/spinkit.css (25175, 2019-05-23)
chatbot/static/css/style.css (1140, 2019-05-23)
chatbot/static/favicon.ico (15086, 2019-05-23)
chatbot/static/js/ (0, 2019-05-23)
chatbot/static/js/chatbot.js (6522, 2019-05-23)
chatbot/static/js/highlight.pack.js (47401, 2019-05-23)
chatbot/storage.py (13532, 2019-05-23)
chatbot/templates/ (0, 2019-05-23)
chatbot/templates/about.html (2717, 2019-05-23)
chatbot/templates/base.html (3340, 2019-05-23)
chatbot/templates/chatbot.html (4050, 2019-05-23)
requirements.txt (248, 2019-05-23)
tests/ (0, 2019-05-23)
tests/__init__.py (51, 2019-05-23)
tests/conftest.py (1330, 2019-05-23)
tests/test_chatbot.py (3247, 2019-05-23)
tests/test_cli_commands.py (2527, 2019-05-23)
tests/test_storage_adapter.py (3072, 2019-05-23)
... ...

# Honours Project 2018 - 2019 A chatbot which can answer C++ questions based on data collected from [Stack Overflow](https://stackoverflow.com/questions/tagged/c%2b%2b?sort=votes&pageSize=15). # Features * Command line inteface for easier data collection, training, and deleting of files. * Alternate responses. * Rating responses. * Responsive design. # Demo There is a live demo of the project at [https://ligh7bringer.pythonanywhere.com/](https://ligh7bringer.pythonanywhere.com/). # Repo Status | **Branch** | **CI** | **Code coverage** | **Requirements** | **Maintainability** | |-----------------|---|---|---|---| | master |[![Build Status](https://travis-ci.org/Ligh7bringer/Chatbot.svg?branch=master)](https://travis-ci.org/Ligh7bringer/Chatbot)|[![Code Coverage](https://codecov.io/github/Ligh7bringer/Chatbot/branch/master/graphs/badge.svg)](https://codecov.io/github/Ligh7bringer/Chatbot)|[![Requirements Status](https://requires.io/github/Ligh7bringer/Chatbot/requirements.svg?branch=master)](https://requires.io/github/Ligh7bringer/Chatbot/requirements/?branch=master)|[![Maintainability](https://api.codeclimate.com/v1/badges/b1106d6c1e2f197d07ba/maintainability)](https://codeclimate.com/github/Ligh7bringer/Chatbot/maintainability)| | development |[![Build Status](https://travis-ci.org/Ligh7bringer/Chatbot.svg?branch=dev)](https://travis-ci.org/Ligh7bringer/Chatbot)|[![Code Coverage](https://codecov.io/github/Ligh7bringer/Chatbot/branch/dev/graphs/badge.svg)](https://codecov.io/github/Ligh7bringer/Chatbot)|[![Requirements Status](https://requires.io/github/Ligh7bringer/Chatbot/requirements.svg?branch=dev)](https://requires.io/github/Ligh7bringer/Chatbot/requirements/?branch=dev)|[![Maintainability](https://api.codeclimate.com/v1/badges/b1106d6c1e2f197d07ba/maintainability)](https://codeclimate.com/github/Ligh7bringer/Chatbot/maintainability)| # Prerequisites * Python 3.6 or newer * pip # Setup 1. Clone this repo and `` cd Chatbot/ `` 2. ``pip install -r requirements.txt`` (you may want to create a [virtual environment](https://docs.python.org/3/tutorial/venv.html) before running this command) 3. Environment variables required by Flask are set automatically (thanks to **.flaskenv**) # Commands After installing the required libraries, your options are: - ```flask --help``` - shows the available commands - ```flask crawl ``` - collects data from Stack Overflow which can be later used for training the bot (stored in **chatbot/training_data/**). Optional command line arguments are: - ``-t, --threads `` - ``-p, --pages `` - ``-v, --verbose`` - verbose command line output - `` flask clean `` - **deletes** the data collected with `` flask crawl `` (stored in **chatbot/training_data/**) * ```-y, --yes``` - don't ask for confirmation - `` flask train `` - requires data collected from the ``crawl `` command and trains the chatbot using it - ``` flask del_db ``` - **deletes** the database generated after training the chatbot * ```-y, --yes``` - don't ask for confirmation - `` flask run `` - runs a local server. The website can be accessed at **127.0.0.1:5000** # Tests Unit tests can be run from the root folder of the project with the command ``pytest`` *after* installing the dependencies. # Screenshots ![sc2](https://i.imgur.com/F6mJc9ol.jpg) ![sc3](https://i.imgur.com/lVvbKebl.jpg)

近期下载者

相关文件


收藏者