Skip to main content

CLI for mowen authorship attribution toolkit

Project description

mowen-cli

Command-line interface for mowen, the authorship attribution toolkit.

Install

pip install mowen-cli

This installs the mowen command and the core library.

Usage

# Run an attribution experiment
mowen run -d docs.csv -e word_ngram -e character_ngram:n=3 --distance cosine

# Evaluate accuracy via leave-one-out cross-validation
mowen evaluate -d corpus.csv -e character_ngram:n=3 --distance cosine --mode loo

# Evaluate with k-fold and export results
mowen evaluate -d corpus.csv -e word_events --mode kfold -k 10 --output-csv results.csv

# Cross-genre evaluation (CSV needs genre column: filepath,author,genre)
mowen evaluate -d corpus.csv -e character_ngram:n=3 --distance cosine --train-genre formal --test-genre informal

# Topic-controlled evaluation (requires topic metadata)
mowen evaluate -d corpus.csv -e word_events --distance cosine --topic-controlled

# Detect style changes within a document
mowen detect-changes document.txt -e character_ngram:n=3 --distance cosine --threshold 0.5

# List all available pipeline components
mowen list-components
mowen list-components event-drivers --json

The CSV manifest format is one row per document: filepath,author (leave author empty for unknown documents).

Documentation

See the mowen repository for full documentation, the web UI, and the REST API server.

License

MIT — Copyright 2026 John Noecker Jr.

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_cli-2.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

mowen_cli-2.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file mowen_cli-2.1.0.tar.gz.

File metadata

  • Download URL: mowen_cli-2.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mowen_cli-2.1.0.tar.gz
Algorithm Hash digest
SHA256 b497f0eaf7abd05f2159c8cc28513a31f96594e15b05e1bbec04319dd25e3ecb
MD5 9be22925c93e341566824678cbad2317
BLAKE2b-256 7539c33013eca957bde12af92c777b66f815134daf6a83f0194bf066f7515454

See more details on using hashes here.

Provenance

The following attestation bundles were made for mowen_cli-2.1.0.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_cli-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: mowen_cli-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mowen_cli-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc43d945cc735e5919185c0948fcc3c31a47f79b5eba1f8518aa21eed490db44
MD5 d0fc6fecd0eeb451a678d31dee37e54c
BLAKE2b-256 396f3376542e041a90e44465c6fa7783ae15e64e33bdabdd0e3d2a2e68299fbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for mowen_cli-2.1.0-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