Skip to main content

quotect

Python package to perform quotation detection on German texts.

Installation

From PYPI: pip install quotect

From reposiory: pip install -e .

Usage

import json
from quotect import Quotect, QuotectArguments, QuoteInput
args = QuotectArguments(
    model_name_or_path="fynnos/quotect-mt5-base",
    output_dir="/tmp",
    predict_with_generate=True,
    generation_max_length=4096,  # max. 4096
    generation_num_beams=1,
)
q = Quotect(args)
input = QuoteInput(
    name="example",
    tokens=[],
    sentences=[],
    text="Sie sagte gestern: 'Morgen scheint die Sonne!' Jemand anderes erwiderte, dass es bestimmt regnen wird.",
)
print(json.dumps(q.predict(input)))

Citation

Based on the publication Fine-grained quotation detection and attribution in German news articles

Metadata

Release files for quotect 1.1.5

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

Source distribution (sdist)

Source distribution for quotect 1.1.5
File Size Uploaded Provenance Actions
quotect-1.1.5.tar.gz 33.1 kB Without provenance Details for quotect-1.1.5.tar.gz

Release files / quotect-1.1.5.tar.gz

Download URL quotect-1.1.5.tar.gz
Size 33.1 kB
Tags Source
SHA-256 checksum
How to use checksums
52458ac94b5d3cd5af4f1d19f80cc5da1810b5f1979bceada95aaebec44a17c0
BLAKE2b-256 checksum
How to use checksums
944b8aa5e0143acb89c6c1720b8d9275b235bec8c586d84521a741669cce0aa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.8

Security for quotect 1.1.5

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