Skip to main content

Getting started with fave-recode

PyPI codecov Maintainability FAVE Python CI Build Docs DOI

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

Metadata

Release files for fave-recode 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fave-recode 0.3.3
File Size Uploaded
fave_recode-0.3.3.tar.gz 23.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fave-recode 0.3.3
File Interpreter ABI Platform
fave_recode-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 49.2 kB

Release files / fave_recode-0.3.3.tar.gz

Download URL fave_recode-0.3.3.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5b20415bba06fe663c5d615396cdc3434e693ad2ba6a17d97a4efbba1209b950
BLAKE2b-256 checksum
How to use checksums
df7f85a8df2057f69cbbc477b11a0c8cbc79af5d90113727ac185546f4f389b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.11.7 Linux/6.11.0-1014-azure

Release files / fave_recode-0.3.3-py3-none-any.whl

Download URL fave_recode-0.3.3-py3-none-any.whl
Size 25.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29937f7a8ebd5f313ea8012494129a9e04cbc87a11c714bf37db00cc4a772d93
BLAKE2b-256 checksum
How to use checksums
79e24b564d803395948e1367b4457a080107f09af8b15acf2ad744bd18bb9e79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.11.7 Linux/6.11.0-1014-azure

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page