Skip to main content

German Maverick Coref

License: CC BY-NC 4.0 Pip Package git

Python Package

The maverick-coref-de Python package provides an easy API to use German Maverick models, enabling efficient and accurate coreference resolution with few lines of code.

Install the library from PyPI

pip install maverick-coref-de

or from source

git clone https://github.com/uhh-lt/maverick-coref-de.git
cd maverick-coref-de
pip install -e .

Loading a Pretrained Model

Maverick models can be loaded using huggingface_id or local path:

from maverick_de import Maverick
model = Maverick(
  hf_name_or_path = "maverick_hf_name" | "maverick_ckpt_path", default = "fynnos/maverick-mes-de10"
  device = "cpu" | "cuda", default = "cuda:0"
)

Inference

Predict

You can use model.predict() to obtain coreference predictions. For a sample input, the model will a dictionary containing:

  • tokens, word tokenized version of the input.
  • clusters_token_offsets, a list of clusters containing mentions' token offsets.
  • clusters_text_mentions, a list of clusters containing mentions in plain text.

Training

Create a Python venv and install from source.

git clone https://github.com/uhh-lt/maverick-coref-de.git
cd maverick-coref-de
pip install -e .
  • Obtain data in .conll format split into train/dev/test
  • Run the minimize.py script from data for the correct dataset
  • Adjust conf/data/<your dataset>.yaml for your dataset
  • Adjust conf/model/mes/<your encoder model>.yaml to
  • Adjust conf/root.yaml to use the your dataset and your encoder model
  • Run CUDA_VISIBLE_DEVICES=X python maverick_de/train.py

Citation

If you use this software, please consider citing our paper published at KONVENS 2025:

@inproceedings{petersenfrey-etal-2025-efficient,
    title = "Efficient and effective coreference resolution for German",
    author = "Petersen-Frey, Fynn and Hatzel, Hans Ole and Biemann, Chris",
    booktitle = "Proceedings of the 21st Conference on Natural Language Processing (KONVENS 2025). Volume 1: Long and Short Papers",
    month = "9",
    year = "2025",
    address = "Hildesheim, Germany",
    publisher = "KONVENS 2025 Organizers"
}

The software in this repository is based on the on the work "Maverick: Efficient and Accurate Coreference Resolution Defying Recent Trends" by Giuliano Martinelli, Edoardo Barba, and Roberto Navigli published at ACL 2024 main conference. It uses their implementation forked from the original repository with some adaptions to a) make it compatible with German and b) try additional model variants. For English, refer to the original python package.

License

The data and software are licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0.

Metadata

Release files for maverick-coref-de 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maverick-coref-de 1.0.6
File Size Uploaded Provenance Actions
maverick_coref_de-1.0.6.tar.gz 35.1 kB Without provenance Details for maverick_coref_de-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for maverick-coref-de 1.0.6
File Interpreter ABI Platform Actions
maverick_coref_de-1.0.6-py3-none-any.whl Python 3 none any Details for maverick_coref_de-1.0.6-py3-none-any.whl

Total release size: 77.9 kB

Release files / maverick_coref_de-1.0.6.tar.gz

Download URL maverick_coref_de-1.0.6.tar.gz
Size 35.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6768ae262f9ef966d29bf0c2219e03ecb03a8f85f5684575114cbe25b92a29c6
BLAKE2b-256 checksum
How to use checksums
5d7db541ea5a57875178666b5cded42f4838ac588439c28e24ab6003cc516720
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / maverick_coref_de-1.0.6-py3-none-any.whl

Download URL maverick_coref_de-1.0.6-py3-none-any.whl
Size 42.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2801f6be265612f14c7ae3471977c1463ff5c93f8c1b503cd32a9d285e6d4e3
BLAKE2b-256 checksum
How to use checksums
e9ee0ca554d27128df427a53444411467fc9833d5c405e73f7382ec3e54ed997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Security for maverick-coref-de 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page