Skip to main content

Summarizer

Requires model: pl_nask-0.0.5.tar.gz from http://mozart.ipipan.waw.pl/~rtuora/spacy/

Install:

python -m pip install path/to/pl_nask-0.0.5.tar.gz
python -m pip install path/to/summarizer-0.0.1-py3-none-any.whl 

Usage:

from summarizer import Summarizer

summarizer = Summarizer()
text = "..."
limit = 300
unit = "words" # "words" or "chars"
out = summarizer.summarize(text, limit, unit)  # dict or KeyError

Alternatively use loaded model:

import spacy
from summarizer import Summarizer

nlp = spacy.load('pl_nask')
summarizer = Summarizer(nlp_model=nlp)

Output dict:

{
    'status': str 'correct' or 'failed',
    'message': str,
    'summary': str,
    'event_id': int,
    'algorithm': str,
}

alg_names should be displayed in the dropdown

out['message'] should be displayed in task results

event_id message status
0 None correct
1 Limit wyrazów jest zbyt wysoki. Utworzono podsumowanie zawierające {} wyrazów. correct
2 Limit wyrazów jest zbyt niski. Utworzono podsumowanie zawierające {} wyrazów. correct
10 Nie udało się przetworzyć tekstu. failed
11 Przesłano zbyt krótki tekst. failed
12 Limit liczby wyrazów jest zbyt wysoki. Nie udało się stworzyć podsumowania. failed
13 Limit liczby wyrazów jest zbyt niski. Nie udało się stworzyć podsumowania. failed

Metadata

Release files for coh-summarizer 0.2

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

Source distribution (sdist)

Source distribution for coh-summarizer 0.2
File Size Uploaded Provenance Actions
coh_summarizer-0.2.tar.gz 10.1 kB Without provenance Details for coh_summarizer-0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for coh-summarizer 0.2
File Interpreter ABI Platform Actions
coh_summarizer-0.2-py3-none-any.whl Python 3 none any Details for coh_summarizer-0.2-py3-none-any.whl

Total release size: 22.7 kB

Release files / coh_summarizer-0.2.tar.gz

Download URL coh_summarizer-0.2.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
77cca4842769b34e98e50f1d58aef622d4efff394e7d6f0b7ba321b1d6af6b0d
BLAKE2b-256 checksum
How to use checksums
0770254221f03779585ed5f7a5f73d33c0d50e0b888226e7a175a35b3889dd40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.9

Release files / coh_summarizer-0.2-py3-none-any.whl

Download URL coh_summarizer-0.2-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dbead66d2fb9de752ea5366c8ef5b23b2a1afadcf62cd89ab3640aa593479c3
BLAKE2b-256 checksum
How to use checksums
169645ba1ad6265348ad1633f1aa75b4089ce4cd3fb95f4ccde81afbb1951178
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.9

Security for coh-summarizer 0.2

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.

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files No provenance

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