Skip to main content

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

mowen-2.0.1.tar.gz (13.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mowen-2.0.1-py3-none-any.whl (14.0 MB view details)

Uploaded Python 3

File details

Details for the file mowen-2.0.1.tar.gz.

File metadata

  • Download URL: mowen-2.0.1.tar.gz
  • Upload date:
  • Size: 13.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mowen-2.0.1.tar.gz
Algorithm Hash digest
SHA256 453e96d3a60b9280b91317b658ce727b20378aea81268f3e6ef7b6051cca058b
MD5 951c4b88ca88d9149382e2b17def2f47
BLAKE2b-256 d8b23018e456b5d303799541a67a98879b06c0a0705d97a5381e3d133a55599b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mowen-2.0.1.tar.gz:

Publisher: publish.yml on jnoecker/mowen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mowen-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: mowen-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mowen-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc43b24ea41ced2105a10fb0a774726dd98077840696dcc11d35fbd2803cd0e5
MD5 409a91823b810b845b4b662225e09b03
BLAKE2b-256 39f2dd51dfa48b6075c2ce29b41778de569b8fe39b85a9b6b24698cb38b8f806

See more details on using hashes here.

Provenance

The following attestation bundles were made for mowen-2.0.1-py3-none-any.whl:

Publisher: publish.yml on jnoecker/mowen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page