Skip to main content

state-of-the-art, ready to use software for quotation detection in German texts

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quotect-1.1.3.tar.gz (31.9 kB view details)

Uploaded Source

File details

Details for the file quotect-1.1.3.tar.gz.

File metadata

  • Download URL: quotect-1.1.3.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for quotect-1.1.3.tar.gz
Algorithm Hash digest
SHA256 c5b2a283cfc446ecf464032f099e94043e5adf04f72f138b7ddbc87ac9eb7812
MD5 255394ac07f1f659a551ae7b5fedbd00
BLAKE2b-256 826fe5be859e6f7cce7379a2bafec89fa93f30133b18e5b1822725231ee9ed03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page