Skip to content

Latest commit

 

History

History
126 lines (88 loc) · 3.32 KB

quick-start.md

File metadata and controls

126 lines (88 loc) · 3.32 KB

Quick Start

Status: Current Last updated: 2026-09-13

Install Batchalign with the command in the TalkBank/batchalign README.

1. Open a command window

2. Check the installation

Paste this command and press Enter:

batchalign --help

If Batchalign prints a list of commands, it is ready.

3. Process a file or folder

This example adds %mor and %gra tiers to every CHAT file in a folder:

batchalign morphotag "/Users/me/Documents/My Corpus"

In PowerShell, a Windows path looks like this:

batchalign morphotag "C:\Users\me\Documents\My Corpus"

Batchalign accepts either one CHAT file or a folder. Use quotation marks around paths containing spaces. Unless you specify an output folder, morphotag updates the files in place.

Before you start

Model downloads: The first use of a backend may download its models. Download size and startup time depend on the backend and language. Later runs reuse model files from disk.

Caching: Batchalign saves text and audio backend results in a local LMDB cache. Repeat runs can reuse matching results, although startup and file processing still take time. See Caching for details.

Basic command shape

batchalign [GLOBAL OPTIONS] COMMAND [COMMAND OPTIONS] [PATHS...]
  • Global options go before the command.
  • Most processing commands use -o/--out for a destination directory.
  • Omitting -o/--out means in-place processing when the command supports it.

Transcribe audio to CHAT

batchalign transcribe ~/recordings/ -o ~/transcripts/ --lang eng

To use the local OpenAI Whisper package instead of the default Rev.AI engine:

batchalign transcribe ~/recordings/ -o ~/transcripts/ \
  --engine openai --lang eng

To use a local Whisper model:

batchalign transcribe ~/recordings/ -o ~/transcripts/ \
  --engine whisper --lang eng

Align transcripts against audio

batchalign align ~/corpus/ -o ~/aligned/

Common useful flags:

batchalign align ~/corpus/ -o ~/aligned/ --engine whisper
batchalign align ~/corpus/ -o ~/aligned/ --utr-engine whisper

Add morphosyntactic analysis

batchalign morphotag ~/corpus/ -o ~/tagged/

Useful variants:

batchalign morphotag ~/corpus/ -o ~/tagged/ --retokenize
batchalign morphotag ~/corpus/ -o ~/tagged/ --keep-existing

Verbosity

batchalign align ~/corpus/ -o ~/aligned/
batchalign -v align ~/corpus/ -o ~/aligned/
batchalign -vv align ~/corpus/ -o ~/aligned/
batchalign -vvv align ~/corpus/ -o ~/aligned/

Next steps