Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

Pie Extended

Tests Documentation PyPI DOI

Extension for Pie (its models run with PaPie 1.0) to include taggers with their models and pre/postprocessors: normalization, tokenization, disambiguation, output formatting. The person who gets a model tags a text in one command and gets the output its authors intended.

Documentation: https://hipster-philology.github.io/pie-extended/

Quick start

Python 3.12 or later is needed.

pip install pie-extended --extra-index-url https://download.pytorch.org/whl/cpu   # the extra index: no GPU needed
pie-extended list                                  # the available models
pie-extended download lasla                        # the model, from Hugging Face (it is also downloaded when first used)
pie-extended tag lasla your_file.txt --tasks lemma,pos
pie-extended tag biblissima-textes/papie-latin#morph your_file.txt --disable-tasks morph   # a model of Hugging Face, by its name

The output is written next to the file (your_file-pie.txt): a TSV with one line per token.

token       lemma  pos     SpaceAfter
Arma        arma   NOMcom  _
uirumque    uir    NOMcom  No
{uirumque}  que    CON     _
cano        cano   ADJqua  No

From Python:

from pie_extended.cli.utils import get_tagger, get_pipeline

tagger = get_tagger("lasla", tasks=["lemma", "pos"])
iterator, processor = get_pipeline("lasla", tagger)
print(tagger.tag_str("Arma uirumque cano", iterator=iterator, processor=processor))

Models

Latin, Ancient Greek, Old, Middle and Early Modern French, Middle Dutch, Occitan, Old Castilian (placeholder) and Eastern, Western and Classical Armenian. Some of them run through spaCy (GreCy), and some combine engines: the lemma of Ancient Greek from Sôtêr, the part of speech from a spaCy pipeline. The documentation lists them, with what is specific to each.

If you trained models and want some help sharing them with Pie Extended, open an issue :)

Documentation

Presentation What Pie Extended does
Install The package and the models
Tagger usage Tag files from a terminal
API usage Tag from Python, build a pipeline
Implement things Add a model, write a tokenizer or processors, learn a segmenter, add an engine, test them
Migrate to 2.0 From 1.x: what changes in the Python API, with the code before and after
Backends PaPie 1.0, spaCy and composite backends: change the pipeline of a model, add a spaCy model
API Reference of the classes and functions
Citation How to cite the software and the models

To build it yourself: pip install -e ".[docs]", then make docs (the result is in docs/_build/html).

Cite as

@software{thibault_clerice_2020_3883590,
  author       = {Clérice, Thibault},
  title        = {Pie Extended, an extension for Pie with pre-processing and post-processing},
  month        = jun,
  year         = 2020,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.3883589},
  url          = {https://doi.org/10.5281/zenodo.3883589}
}

Please also cite the models you use: see Citation.

Metadata

Release files for pie-extended 2.0.1

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

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for pie-extended 2.0.1
File Size Uploaded Provenance Actions
pie_extended-2.0.1.tar.gz 98.0 kB With provenance Details for pie_extended-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pie-extended 2.0.1
File Interpreter ABI Platform Actions
pie_extended-2.0.1-py3-none-any.whl Python 3 none any Details for pie_extended-2.0.1-py3-none-any.whl

Total release size: 191.9 kB

Release files / pie_extended-2.0.1.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL pie_extended-2.0.1.tar.gz
Size 98.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6b9a95de50a58e8b0e08dd6a378d795e48e0272969191619999a1f4e2ab29f1f
BLAKE2b-256 checksum
How to use checksums
e3ba8b70f1c43dcbd1e9727a638c2be63ba492dad4b04b555c4f4c54179b6f44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / pie_extended-2.0.1-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL pie_extended-2.0.1-py3-none-any.whl
Size 93.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5db2e91cd855ccbf75d8fc62d7e92283f57f403a2424da008238f338efc36e5
BLAKE2b-256 checksum
How to use checksums
6841bd5acce1ed6a6de0bb5bbc84fbcf96a8f9226fcfee6c4a8892a835864646
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for pie-extended 2.0.1

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.

Change of provenance

The repository and configuration that created this release differ from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for pie_extended-2.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

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

2.0.1 This release

2 release files Change of 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