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:
-a, --parser TEXT Label set parser. Built in options are cmu_parser
-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 -a cmu_parser
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.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68479afe1c736775fc7731741c4adb2f4e0345fc7b1462a5b612fa89162592f5 |
|
MD5 | 90aebb7b20011beaa45be070ccc39c73 |
|
BLAKE2b-256 | f1741737983c161653603fdeffa0b3a2b60fb1cdccd10698decb128cd3a0097e |