Skip to main content

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.

Animated comparison of PseudoPath models and routing presets

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.1

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

Source distribution (sdist)

Source distribution for pseudopath 0.1.1
File Size Uploaded
pseudopath-0.1.1.tar.gz 53.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pseudopath 0.1.1
File Interpreter ABI Platform
pseudopath-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 103.3 kB

Release files / pseudopath-0.1.1.tar.gz

Download URL pseudopath-0.1.1.tar.gz
Size 53.1 kB
Tags Source
SHA-256 checksum
How to use checksums
312efbc62644a58ba32484c960213a898ca6a36db248dc7ac4b473f5c569eb83
BLAKE2b-256 checksum
How to use checksums
16a62345192ec0c75f9af4decafcca1d53c597729d2a7bf1d67e1374d98a5052
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 8, 2026.

Transparency log

Release files / pseudopath-0.1.1-py3-none-any.whl

Download URL pseudopath-0.1.1-py3-none-any.whl
Size 50.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cad58cece1c4ed60d4913b46d9635aaf1bcd87c5c1dc71c4777d54a74740b37f
BLAKE2b-256 checksum
How to use checksums
0acff4f95749b45a324a8c02e419169b23c6fc663a42ffcd7859aed69902b030
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 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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