Skip to main content

Figurenerkennung for German literary texts.

Project description

Figurenerkennung for German literary texts

Build Status

An important step in the quantitative analysis of narrative texts is the automatic recognition of references to figures, a special case of the generic NLP problem of Named Entity Recognition (NER).

Usually NER models are not designed for literary texts resulting in poor recall. This easy-to-use package is the continuation of the work of Jannidis et al., using state-of-the-art techniques from the field of Deep Learning reaching a Micro F1-Score of 95.89 and a Macro F1-Score of 67.74.

Figurenerkennung statistics

This is based on the test set of 55,868 tokens.

TP FP FN TN
AppA 2 2 288 2
AppTdfW 418 131 383 418
Core 626 114 211 626
pron 2284 604 766 2284
_ 52538 1546 749 52538

Installation

$ pip install figur

Example

>>> import figur
>>> text = "Der Gärtner entfernte sich eilig, und Eduard folgte bald."
>>> figur.tag(text)
    SentenceId      Token      Tag
0            0        Der        _
1            0    Gärtner  AppTdfW
2            0  entfernte        _
3            0       sich     pron
4            0      eilig        _
5            0          ,        _
6            0        und        _
7            0     Eduard     Core
8            0     folgte        _
9            0       bald        _
10           0          .        _

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

figur-0.0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

figur-0.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file figur-0.0.2.tar.gz.

File metadata

  • Download URL: figur-0.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.2

File hashes

Hashes for figur-0.0.2.tar.gz
Algorithm Hash digest
SHA256 73aa8ba4876de3952159e075e119d443885056fbfc0fd171391b27cde23a2895
MD5 d894476ca4d348a38429a0714c974971
BLAKE2b-256 3d60365352512024bfd43fbd1bd0bcdd9ab9d8958ec726464e48f4409fd625ef

See more details on using hashes here.

File details

Details for the file figur-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: figur-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.2

File hashes

Hashes for figur-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 586f993f1e854b99cea186f3a845daac2fc61b439a2f2f7f3b6ad591b023487a
MD5 80cf1bdffa30f7763ff3fec8a0d2ec1f
BLAKE2b-256 c21984faab0fdd9571350defe358ba0d11844f1b1f6343c112f7b139abbb3fcb

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