Tagger for literary character mentions (DROC corpus)
This is the character recognizer model that is being used in
LLpro
. It detects character mentions in literary fiction: (a) proper nouns ("Alice", "Effi"), and (b) nominal phrases ("Gärtner", "Mutter", "Graf", "Idiot", "Schöne", ...). The model is trained on the
DROC dataset
, fine-tuning the domain-adapted
lkonle/fiction-gbert-large
. (
Training code
)
F1-Score:
91.85
(on a held-out data split; micro average on B-PER and I-PER labels)
Demo Usage:
from flair.data import Sentence
from flair.models import SequenceTagger
# load tagger
tagger = SequenceTagger.load("aehrm/droc-character-recognizer")
# make example sentence
sentence = Sentence("Effi folgte Graf Instetten nach Kessin.")
# predict NER tags
tagger.predict(sentence)
# print sentenceprint(sentence)
# >>> Sentence[7]: "Effi folgte Graf Instetten nach Kessin." → ["Effi"/PER, "Graf Instetten"/PER]# print predicted NER spansprint('The following NER tags are found:')
# iterate over entities and printfor entity in sentence.get_spans('character'):
print(entity)
# >>> Span[0:1]: "Effi" → PER (1.0)# >>> Span[2:4]: "Graf Instetten" → PER (1.0)
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 droc-character-recognizer on huggingface.co
16
Total runs
-1
24-hour runs
-1
3-day runs
0
7-day runs
12
30-day runs
More Information About droc-character-recognizer huggingface.co Model
More droc-character-recognizer license Visit here:
droc-character-recognizer huggingface.co is an AI model on huggingface.co that provides droc-character-recognizer's model effect (), which can be used instantly with this aehrm droc-character-recognizer model. huggingface.co supports a free trial of the droc-character-recognizer model, and also provides paid use of the droc-character-recognizer. Support call droc-character-recognizer model through api, including Node.js, Python, http.
droc-character-recognizer huggingface.co is an online trial and call api platform, which integrates droc-character-recognizer's modeling effects, including api services, and provides a free online trial of droc-character-recognizer, you can try droc-character-recognizer online for free by clicking the link below.
aehrm droc-character-recognizer online free url in huggingface.co:
droc-character-recognizer is an open source model from GitHub that offers a free installation service, and any user can find droc-character-recognizer on GitHub to install. At the same time, huggingface.co provides the effect of droc-character-recognizer install, users can directly use droc-character-recognizer installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
droc-character-recognizer install url in huggingface.co: