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.4.tar.gz
(33.1 kB
view details)
File details
Details for the file quotect-1.1.4.tar.gz.
File metadata
- Download URL: quotect-1.1.4.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 |
efc59045e74ffe8ac9166501ab352ddfab1c2a82d3ab3ffb1cfd180533bf99a8
|
|
| MD5 |
e0b4b49d0bea925e4ff82c090ebac3f1
|
|
| BLAKE2b-256 |
2b28528a876b5223db32725551d7d59d81f99d2869d790ad016a171d8cc592ff
|