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.0.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.0.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mowen_cli-2.0.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.7

File hashes

Hashes for mowen_cli-2.0.0.tar.gz
Algorithm Hash digest
SHA256 91e04e275426ea97fee48d9ad5c5c10b4ac1abe15df6eb47726955b1630a0748
MD5 e3781e9983d66eeda4af006a6fdb11be
BLAKE2b-256 59da4bc30e74c442ba1038e62d2a93540d020f0a617250b0abb42b258d4cf110

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mowen_cli-2.0.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.7

File hashes

Hashes for mowen_cli-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b550dbc01cc9fca3a1731e99ab37bec80fcebb843cdf2df99f93ce9adc3f37f0
MD5 fe820cca400f27879caac0a8e6b12c54
BLAKE2b-256 4462227e46e154f96a86d45a64a0971f1bd931c50eaaae489f9d3a3f9d92db2b

See more details on using hashes here.

Provenance

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