Question Answering Dialog System
Project description
Let Me Answer For You
A deep learning dialog system that answers specific and complex questions.
Built on top of the deeppavlov library
Pip Install
The library can be found on PyPI so you can just run:
pip install let_me_answer_for_you
Simple Usage
After the package is installed, download the file chatbot.py
of the GitHub repository and run:
python chatbot.py
After the installation process is finished, the following interface appears:
In the first example, neither the FAQ or context datasets have samples. After the first context is added, it appears as a reponse to the typed answer. The second example adds a new question-answer pair. The context of the first example also provides an answer.
Technologies
The Chatbot is based on two types of question/answer models:
The first type of models can answer several questions from the same context, while the second type is very useful for specific and complex questions. It is strongly recommended to consult the deeppavlov library for further details of the available models for dialog systems.
Structure of the Package
The package let_me_answer_for_you
consists of three modules: settings, dialog_system and chatbot.
The chatbot.py
file of the repo, calls the ChatBot
class in chatbot
and is the child of the DialogSystem
class in dialog_system
. This last class has the three main methods of the library:
The first method retrieves a set of answers for a given question. The second method adds a new question-answer pair to the FAQ data and retrains the model. The third method adds a new context to the context data. These are the methods that may be exported as the API calls.
Read the Docs
Requirements
The library has been tested in python 3.7
Docker
A container with all the configurations installed is available:
docker pull ejimenezr/dialog_system
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file let_me_answer_for_you-0.1.2.tar.gz
.
File metadata
- Download URL: let_me_answer_for_you-0.1.2.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200311 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72062e34d0f4d2a994fe8f4a4a177e7f70ab1486bc73242b8204e31e00128ee2 |
|
MD5 | dc5187b4701034314e131779a978ac1b |
|
BLAKE2b-256 | dcdf660b46e2d4852663cb5d103aa350ded789bc0087e2d0420b83d82dff3543 |
File details
Details for the file let_me_answer_for_you-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: let_me_answer_for_you-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200311 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be7c5baa5b94754a5946af901e9957c4a1dae1e6f8428c17c06adc092c571269 |
|
MD5 | a7e148756ff27f04c1b414589e012211 |
|
BLAKE2b-256 | 3786440be3f84af2c683c73dd6bf6e182d73051fe0bdcb88c02f9539313e2424 |