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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fave_recode-0.3.3.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fave_recode-0.3.3-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file fave_recode-0.3.3.tar.gz.

File metadata

  • Download URL: fave_recode-0.3.3.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.7 Linux/6.11.0-1014-azure

File hashes

Hashes for fave_recode-0.3.3.tar.gz
Algorithm Hash digest
SHA256 5b20415bba06fe663c5d615396cdc3434e693ad2ba6a17d97a4efbba1209b950
MD5 63bc22d4a15d84a75a938817a1d24b06
BLAKE2b-256 df7f85a8df2057f69cbbc477b11a0c8cbc79af5d90113727ac185546f4f389b9

See more details on using hashes here.

File details

Details for the file fave_recode-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: fave_recode-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.7 Linux/6.11.0-1014-azure

File hashes

Hashes for fave_recode-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 29937f7a8ebd5f313ea8012494129a9e04cbc87a11c714bf37db00cc4a772d93
MD5 50e00973811b1408ad0a3381b5757efd
BLAKE2b-256 79e24b564d803395948e1367b4457a080107f09af8b15acf2ad744bd18bb9e79

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page