chatbook: Dialogue agent handling queries about a given text document
Project description
chatbook
Python-based summary and keyword extractor and question answering system about a document's content
##INSTALL
See the requirements.txt file if installing directly. To make an editable package locally, use
pip3 install -e .
To embed in a system as is, from pypi.org use
pip3 install -U chatbook
##USAGE:
This lightweight version of the doctalk package assumes that files have been pre-processesed by doctalk from .txt or .pdf files into .json files. With minimal dependencies (networkx and nltk) and memory requeirements this package is planned to be exposed as a Web App or as an Alexa skill.
python3 -i
>>> from chatbook.talk import run_with
>>> run_with(fname)
This activates dialog about document in <fname>.txt with questions in <fname>_quests.txt
See some examples at :
https://github.com/ptarau/chatbook , where, after installing the system, you can run
python3 -i tests.py
>>> go()
To play with various parameter settings, edit the chatbook/params.py file.
Web App
To use the included ``docbotWeb app, after installingFlask``` and ```waitress```, run the ```app.py``` file in directory ```docbot``` with ```python3 app.py```.
The docbot uses a JSON-based API, documented in chatbook/api.py. In fact, this is the simplest way to integrate the summarizer and the dialog agent into a production 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chatbook-0.2.4.tar.gz.
File metadata
- Download URL: chatbook-0.2.4.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbeb57bcb3c6584fcc4c5ef1adb5ec4535a88174a848b5f0235cfda144dc05e4
|
|
| MD5 |
c32b7dffcb610d9d17297c9335e07352
|
|
| BLAKE2b-256 |
dc8f683da82c1595a7eacdc6fd7863a1ec518e8c94de440cc1163cb9879ba847
|
File details
Details for the file chatbook-0.2.4-py3-none-any.whl.
File metadata
- Download URL: chatbook-0.2.4-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d8e5b0a67db2ab8229d94a37dc7fbec10850a3d6dab848baa2f124cdc393e75
|
|
| MD5 |
d0252d9c2b49ede7e9583b15afa75da9
|
|
| BLAKE2b-256 |
e0dbba6c3ebcd611a33deaa0b93f7db1f581a152f67168a9e8ed7acec4ec2d42
|