Authorship attribution toolkit — stylometric analysis with a configurable pipeline
Project description
mowen
Core Python library for authorship attribution.
This package provides the pipeline engine, all built-in components (canonicizers, event drivers, event cullers, distance functions, analysis methods), evaluation utilities (cross-validation, metrics), and the tokenizer framework.
Install
pip install -e . # core only (no optional deps)
pip install -e '.[nlp]' # + spaCy POS/NER
pip install -e '.[all]' # everything
Usage
from mowen import Pipeline, PipelineConfig, Document, leave_one_out
# Attribution
results = Pipeline(config).execute(known_docs, unknown_docs)
# Cross-validation
eval_result = leave_one_out(docs, config)
print(eval_result.accuracy, eval_result.macro_f1)
See the root README for full documentation.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mowen-1.0.0.tar.gz.
File metadata
- Download URL: mowen-1.0.0.tar.gz
- Upload date:
- Size: 12.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a2fbd56f44aba1ddaba2e878d47e909ef2118ce39e3b1903bfe9d5f2ba58136
|
|
| MD5 |
1fab727f2bfba3ae527380248a5661a4
|
|
| BLAKE2b-256 |
685b70c7e9fe44e27cd7e22dc358abe6edf92df7fb9f1855469f31a615021a6d
|
Provenance
The following attestation bundles were made for mowen-1.0.0.tar.gz:
Publisher:
publish.yml on jnoecker/mowen
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mowen-1.0.0.tar.gz -
Subject digest:
7a2fbd56f44aba1ddaba2e878d47e909ef2118ce39e3b1903bfe9d5f2ba58136 - Sigstore transparency entry: 1114736545
- Sigstore integration time:
-
Permalink:
jnoecker/mowen@7d69c1e2729d84c40b4a4dbbcacd691f62565c20 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/jnoecker
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7d69c1e2729d84c40b4a4dbbcacd691f62565c20 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mowen-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mowen-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6b7b900836d31118b27d50a4ea4d1af19e1213b40248ad7414fe90ff7db61dc
|
|
| MD5 |
c078c78df19b0a87b0f23bc291c54cbf
|
|
| BLAKE2b-256 |
2a334ad160008a73bfca4715060e46e8b1926e409e016dcf64bab5b586236388
|
Provenance
The following attestation bundles were made for mowen-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on jnoecker/mowen
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mowen-1.0.0-py3-none-any.whl -
Subject digest:
c6b7b900836d31118b27d50a4ea4d1af19e1213b40248ad7414fe90ff7db61dc - Sigstore transparency entry: 1114736551
- Sigstore integration time:
-
Permalink:
jnoecker/mowen@7d69c1e2729d84c40b4a4dbbcacd691f62565c20 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/jnoecker
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7d69c1e2729d84c40b4a4dbbcacd691f62565c20 -
Trigger Event:
push
-
Statement type: