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
Release history Release notifications | RSS feed
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.5.tar.gz
(33.1 kB
view details)
File details
Details for the file quotect-1.1.5.tar.gz.
File metadata
- Download URL: quotect-1.1.5.tar.gz
- Upload date:
- Size: 33.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52458ac94b5d3cd5af4f1d19f80cc5da1810b5f1979bceada95aaebec44a17c0
|
|
| MD5 |
c4953078389a56a18373205b3204fdd2
|
|
| BLAKE2b-256 |
944b8aa5e0143acb89c6c1720b8d9275b235bec8c586d84521a741669cce0aa2
|