A package for recoding Praat TextGrids
Project description
Getting started with fave-recode
The idea behind fave-recode
is that no matter how much you may adjust
the dictionary of a forced-aligner, you may still want to make
programmatic changes to the output.
Installation
You can install fave-recode
at your system’s command line with pip
.
pip install fave-recode
Basic usage
Installation of the fave-recode
python package makes the fave_recode
executable, which can also be run at the command line. You can get help
with --help
fave_recode --help
Usage: fave_recode [OPTIONS]
Inputs: [at least 1 required]
File inputs. Either a single file with -i or a path with -p. Not both.
-i, --input_file FILENAME single input file
-p, --input_path PATH Path to a set of files
Outputs:
-o, --output_file TEXT An output file name
-d, --output_dest PATH An output directory
Other options:
-s, --scheme TEXT Recoding scheme. Built in options are cmu2labov
and cmu2phila [required]
-r, --recode_stem TEXT Stem to append to recoded TextGrid file names
-t, --target_tier TEXT Target tier to recode
--help Show this message and exit.
To recode a single file, you need to provide fave_recode
with,
minimally, the input file (the -i
flag), and the recoding scheme (with
the -s
flag). There are a few default recoding schemes that come with
fave_recode
.
ls data
KY25A_1.TextGrid josef-fruehwald_speaker.TextGrid
fave_recode -i data/josef-fruehwald_speaker.TextGrid -s cmu2phila
ls data
KY25A_1.TextGrid
josef-fruehwald_speaker.TextGrid
josef-fruehwald_speaker_recoded.TextGrid
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for fave_recode-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5d5677b6ae2e7ab449a736e4095ac41fb81d9fae487ac8ca381040a0821a4fb |
|
MD5 | 2474dbca953eb657cd5a52ddfd1ec8fd |
|
BLAKE2b-256 | 35d095f5011b531342e274ca8aa0d6220f3dd920352b50de1769c99927ac4300 |