doctalk
Python-based summary and keyword extractor and question answering system with optional BERT-based post-processing filter and spoken output
##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 doctalk
##USAGE:
python3 -i
>>> from doctalk.talk import run_with
>>> run_with(fname)
>>> from doctalk.think import reason_with
>>> reason_with(fname)
This activates dialog about document in <fname>.txt with questions in <fname>_quests.txt
See some examples at :
https://github.com/ptarau/pytalk , where, after installing the system, you can run
python3 -i tests.py
>>> go()
>>> tgo()
To run the system one will need to start the Stanford Corenlp Server, listening on port 9000 with all annotators in params.py started, i.e., with something like:
java -mx16g -cp "stanford-corenlp-full-2018-10-05/*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer
-preload tokenize,ssplit,pos,lemma,depparse,natlog,openie
To play with various parameter settings, edit the doctalk/params.py file.
Please see the install hints for stanfordnlp, that might involve torch binaries, and require anaconda on some systems.
Web App
To use the included ``docbootWeb 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 doctalk/api.py. In fact, this is the simplest way to integrate the summarizer and the dialog agent into a production system.
Metadata
Release files for doctalk 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| doctalk-0.4.0.tar.gz | 146.7 kB | Without provenance | Details for doctalk-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| doctalk-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for doctalk-0.4.0-py3-none-any.whl |
Total release size: 293.3 kB
Release files / doctalk-0.4.0.tar.gz
| Download URL | doctalk-0.4.0.tar.gz |
|---|---|
| Size | 146.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0597c5f6500962c343bc78393ca216476f5335cd5a3e1a49a03af4007d4299d2
|
|
BLAKE2b-256 checksum How to use checksums |
12714851c1ade7073765facb35ebfee58f3263cd17b925810d725af3b9c748ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / doctalk-0.4.0-py3-none-any.whl
| Download URL | doctalk-0.4.0-py3-none-any.whl |
|---|---|
| Size | 146.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
939e58ab5378705bafa27de4c7e8ba1d41ea051cf0095c5ddc28fc68b542ca66
|
|
BLAKE2b-256 checksum How to use checksums |
699af0d7aa897e41153484a2eec9444fc57c6effb92f234694493c5c92214794
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for doctalk 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.