PseudoPath
PseudoPath trains a named-entity recognition (NER) model, learns a residual line router, and calibrates three recall budgets. Prediction combines the model with fixed rules adapted from EDS-Pseudo and returns spaCy entities.
Three integrated presets keep the common workflow short: camembert,
distilcamembert, and tok2vec. You can also supply your own model and
adapter without changing the rules or router.
Compare CPU throughput and detection quality across models and routing presets in the interactive benchmark.
Python 3.11 or newer is required. Install from PyPI:
python -m pip install pseudopath
# For CamemBERT or DistilCamemBERT:
python -m pip install 'pseudopath[transformer]'
No separate eds-pseudo installation is needed.
Train, predict, and save in a few lines:
from pseudopath import PseudoPath, Tok2VecTraining, read_jsonl
pipeline = PseudoPath.from_preset("tok2vec")
pipeline.fit(
read_jsonl("train.jsonl"),
read_jsonl("validation.jsonl"),
training=Tok2VecTraining(steps=100, validation_interval=20),
)
entities = pipeline.predict("Luc Martin consulte.", routing="balanced")
pipeline.to_disk("pseudopath-artifact")
restored = PseudoPath.from_disk("pseudopath-artifact")
read_jsonl reads text and annotated character offsets into spaCy documents.
See the quickstart for the data format and
examples for short workflows with synthetic data. Run them
from the repository root, for example:
python examples/train_tok2vec.py
python examples/predict.py
See models and configuration for preset backbones, architecture overrides, and learning controls. For a trained external checkpoint, follow custom models.
fit trains the model and router and calibrates "prudent",
"balanced", and "fast" against "all-lines". You can instead set
any numeric routing threshold in [0, 1]. A later fit continues the
model and, by default, the router. reset_router=True starts a new router.
predict(text) and predict(doc) return spaCy spans without changing the
input document's annotations.
Read the documentation for installation, training, and inference. The API reference describes public methods, and architecture explains how the pipeline works.
PseudoPath's own code is licensed under GPL-3.0-only. Selected EDS-Pseudo v0.4.0 patterns and derived training behavior retain BSD-3-Clause terms. See LICENSE and THIRD_PARTY_NOTICES.md.
Metadata
Release files for pseudopath 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pseudopath-0.1.0.tar.gz | 53.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pseudopath-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 103.3 kB
Release files / pseudopath-0.1.0.tar.gz
| Download URL | pseudopath-0.1.0.tar.gz |
|---|---|
| Size | 53.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7fe7bd36b764984358c8ed50f168ea6926c76a6a2e70777c6218f4c13eb8f74
|
|
BLAKE2b-256 checksum How to use checksums |
754d3eed96dd71cf6cf2cf4f33c3c204cb3f7f65873455cc2fa6d7862be018e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / pseudopath-0.1.0-py3-none-any.whl
| Download URL | pseudopath-0.1.0-py3-none-any.whl |
|---|---|
| Size | 50.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a37dbe6af1fc4415a113527672bb2256efea3564de89a3eeb8b775815ad11c3
|
|
BLAKE2b-256 checksum How to use checksums |
d0faac7737be3fa89075972d3c313a1db4c6bb769d25e30f187f27a2eb8c68a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency log