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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mowen_cli-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 399b856ba4a2ac6cc51ea3189472b9f6600a21b4cc57c15f0a361ccd347585ac
MD5 fff28be5d650624c4471b5aa3df05a07
BLAKE2b-256 5ffc4c79a368be1810c87db7b4d4c80ac105889269687c41c7678d21b53726f8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mowen_cli-2.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2bfa6256b0a0e887c68d9720fb8bf842e6f5157b899a998fa67c3f48eb0e664f
MD5 9a013d7b8ab7fe99404d295760416540
BLAKE2b-256 de8dc60f7a428571d67ca6176894ad06df516e3748a14610533b62df8ac8c2cc

See more details on using hashes here.

Provenance

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