Skip to main content

Project Description

** The system uses package text_graph_crafts based on dependency links for building Text Graphs, that with help of a centrality algorithm like PageRank, extract relevant keyphrases, summaries and relations from text documents.

A SWI-Prolog based module adds an interactive shell for talking about the document with a dialog agent that extracts for each query the most relevant sentences covering the document. Spoken dialog is also available if the OS supports it. Developed with Python 3, on OS X, but portable to Linux.**

Dependencies:

  • python 3.7 or newer, pip3, java 9.x or newer, SWI-Prolog 8.x or newer, graphviz
  • also, having git installed is recommended for easy updates
  • pip3 install text_graph_crafts

see how to activate other outputs in file

https://github.com/ptarau/TextGraphCrafts/blob/master/text_graph_crafts/deepRank.py

The second is activated with

python3 -i qpro.py

or the shorthand script qgo.

It requires SWI-Prolog to be installed and available in the path as the executable swipl and the Python to Prolog interface pyswip, to be installed with

pip3 install pyswip

It activates a Prolog process to which Python sends interactively queries about a selected document. Answers are computed by Prolog and then, if the parameter quiet is off, spoken using the say OS-level facility (available on OS X and Linux machines.

Prolog relation files, generated on the Python side are associated to each document as well as the queries about it. They are stored in the same directory as the document.

Try

>>> t1() 
...
>>> t9()
>>> t0()

or

>>> chat('const')

to interactively chat about the US Constitution. The same
for other documents in the examples folder.

### Handling PDF documents

The easiest way to do this is to install *pdftotext*, which is part of [Poppler tools](https://poppler.freedesktop.org/).

If pdftotext is installed, you can place a file like *textrank.pdf*
already in subdirectory pdfs/ and try something similar to:

pdf_chat('textrank')

which activates a dialog about the TextRank paper. Also

pdf_chat('logrank')

activates a dialog about *pdfs/logrank.pdf*, which describes
the architecture of the current system.

Change setting in file params.py to use the system with
other global parameter settings.




Metadata

Release files for deep-talk 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deep-talk 0.1.4
File Size Uploaded Provenance Actions
deep_talk-0.1.4.tar.gz 1.5 MB Without provenance Details for deep_talk-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deep-talk 0.1.4
File Interpreter ABI Platform Actions
deep_talk-0.1.4-py3-none-any.whl Python 3 none any Details for deep_talk-0.1.4-py3-none-any.whl

Total release size: 1.5 MB

Release files / deep_talk-0.1.4.tar.gz

Download URL deep_talk-0.1.4.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
c09031efdf8684f85acab7e3443c01f9ee351bc83df85aff3d362bc0e4051c24
BLAKE2b-256 checksum
How to use checksums
d2dcaa33ae26d28262c4f4f913df17e1bc70e50c7d4a03bef575d40ce81c1d5b
Upload date
Uploaded using Trusted Publishing?
What is 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.32.2 CPython/3.7.4

Release files / deep_talk-0.1.4-py3-none-any.whl

Download URL deep_talk-0.1.4-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ed56a5c9537a49875cdeb8ae45a38a7d29f1c87df6b517bf61c55502be20570
BLAKE2b-256 checksum
How to use checksums
97a463f79eb79facd4de535f86b7db206c02b3a9d4f66281a1171d3f9ba29817
Upload date
Uploaded using Trusted Publishing?
What is 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.32.2 CPython/3.7.4

Security for deep-talk 0.1.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page