This model is part of an ensemble of binary taggers that recognize German speech, thought and writing representation, that is being used in
LLpro
. They can be used to automatically detect and annotate the following 4 types of speech, thought and writing representation in German texts:
STWR type
Example
Translation
direct
Dann sagte er:
"Ich habe Hunger."
Then he said:
"I'm hungry."
free indirect ('erlebte Rede',
this tagger
)
Er war ratlos.
Woher sollte er denn hier bloß ein Mittagessen bekommen?
He was at a loss.
Where should he ever find lunch here?
from flair.data import Sentence
from flair.models import SequenceTagger
sentence = Sentence('Sie sprachen über das Mittagessen. Sie fragte, wo das Essen sei. Woher sollte er das wissen? Dann sagte er: "Ich habe Hunger."')
rwtypes = ['direct', 'indirect', 'freeindirect', 'reported']
for rwtype in rwtypes:
model = SequenceTagger.load(f'aehrm/redewiedergabe-{rwtype}')
model.predict(sentence)
print(rwtype, [ x.data_point.text for x in sentence.get_labels() ])
# >>> direct ['"', 'Ich', 'habe', 'Hunger', '.', '"']# >>> indirect ['wo', 'das', 'Essen', 'sei', '.']# >>> freeindirect ['Woher', 'sollte', 'er', 'das', 'wissen', '?']# >>> reported ['Sie', 'sprachen', 'über', 'das', 'Mittagessen', '.', 'Woher', 'sollte', 'er', 'das', 'wissen', '?']
Cite
:
Please cite the following paper when using this model.
@inproceedings{ehrmanntraut-et-al-llpro-2023,
address = {Ingolstadt, Germany},
title = {{LLpro}: A Literary Language Processing Pipeline for {German} Narrative Text},
booktitle = {Proceedings of the 10th Conference on Natural Language Processing ({KONVENS} 2022)},
publisher = {{KONVENS} 2023 Organizers},
author = {Ehrmanntraut, Anton and Konle, Leonard and Jannidis, Fotis},
year = {2023},
}
Runs of aehrm redewiedergabe-freeindirect on huggingface.co
17
Total runs
0
24-hour runs
0
3-day runs
-1
7-day runs
2
30-day runs
More Information About redewiedergabe-freeindirect huggingface.co Model
redewiedergabe-freeindirect huggingface.co
redewiedergabe-freeindirect huggingface.co is an AI model on huggingface.co that provides redewiedergabe-freeindirect's model effect (), which can be used instantly with this aehrm redewiedergabe-freeindirect model. huggingface.co supports a free trial of the redewiedergabe-freeindirect model, and also provides paid use of the redewiedergabe-freeindirect. Support call redewiedergabe-freeindirect model through api, including Node.js, Python, http.
redewiedergabe-freeindirect huggingface.co is an online trial and call api platform, which integrates redewiedergabe-freeindirect's modeling effects, including api services, and provides a free online trial of redewiedergabe-freeindirect, you can try redewiedergabe-freeindirect online for free by clicking the link below.
aehrm redewiedergabe-freeindirect online free url in huggingface.co:
redewiedergabe-freeindirect is an open source model from GitHub that offers a free installation service, and any user can find redewiedergabe-freeindirect on GitHub to install. At the same time, huggingface.co provides the effect of redewiedergabe-freeindirect install, users can directly use redewiedergabe-freeindirect installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
redewiedergabe-freeindirect install url in huggingface.co: