-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from Forced-Alignment-and-Vowel-Extraction/8-u…
…se-quartodoc-for-docs docs work
- Loading branch information
Showing
30 changed files
with
1,869 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,69 @@ | ||
# fave-recode | ||
# Getting started with `fave-recode` | ||
|
||
[![codecov](https://codecov.io/gh/Forced-Alignment-and-Vowel-Extraction/fave-recode/graph/badge.svg?token=C23B1H3DAX)](https://codecov.io/gh/Forced-Alignment-and-Vowel-Extraction/fave-recode) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/2375ddfef5d77ba1681d/maintainability)](https://codeclimate.com/github/Forced-Alignment-and-Vowel-Extraction/fave-recode/maintainability) | ||
[![FAVE Python CI](https://github.com/Forced-Alignment-and-Vowel-Extraction/fave-recode/actions/workflows/test-and-run.yml/badge.svg?branch=dev)](https://github.com/Forced-Alignment-and-Vowel-Extraction/fave-recode/actions/workflows/test-and-run.yml) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/2375ddfef5d77ba1681d/maintainability.png)](https://codeclimate.com/github/Forced-Alignment-and-Vowel-Extraction/fave-recode/maintainability) | ||
[![FAVE Python | ||
CI](https://github.com/Forced-Alignment-and-Vowel-Extraction/fave-recode/actions/workflows/test-and-run.yml/badge.svg?branch=dev)](https://github.com/Forced-Alignment-and-Vowel-Extraction/fave-recode/actions/workflows/test-and-run.yml) | ||
[![Build | ||
Docs](https://github.com/Forced-Alignment-and-Vowel-Extraction/fave-recode/actions/workflows/build-docs.yml/badge.svg)](https://forced-alignment-and-vowel-extraction.github.io/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`. | ||
|
||
``` bash | ||
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` | ||
|
||
``` bash | ||
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`. | ||
|
||
``` bash | ||
ls data | ||
``` | ||
|
||
KY25A_1.TextGrid josef-fruehwald_speaker.TextGrid | ||
|
||
The goal is to separate vowel class recoding as a separate step from fave-extraction. | ||
``` bash | ||
fave_recode -i data/josef-fruehwald_speaker.TextGrid -s cmu2phila | ||
|
||
Planned framework | ||
ls data | ||
``` | ||
|
||
- `praatio` for textgrid processing | ||
- `pyyaml` for defining the recoding | ||
KY25A_1.TextGrid | ||
josef-fruehwald_speaker.TextGrid | ||
josef-fruehwald_speaker_recoded.TextGrid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
title: Getting started with `fave-recode` | ||
engine: jupyter | ||
format: gfm | ||
--- | ||
|
||
[![codecov](https://codecov.io/gh/Forced-Alignment-and-Vowel-Extraction/fave-recode/graph/badge.svg?token=C23B1H3DAX)](https://codecov.io/gh/Forced-Alignment-and-Vowel-Extraction/fave-recode) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/2375ddfef5d77ba1681d/maintainability)](https://codeclimate.com/github/Forced-Alignment-and-Vowel-Extraction/fave-recode/maintainability) | ||
[![FAVE Python CI](https://github.com/Forced-Alignment-and-Vowel-Extraction/fave-recode/actions/workflows/test-and-run.yml/badge.svg?branch=dev)](https://github.com/Forced-Alignment-and-Vowel-Extraction/fave-recode/actions/workflows/test-and-run.yml) | ||
[![Build Docs](https://github.com/Forced-Alignment-and-Vowel-Extraction/fave-recode/actions/workflows/build-docs.yml/badge.svg)](https://forced-alignment-and-vowel-extraction.github.io/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`. | ||
```bash | ||
pip install fave-recode | ||
``` | ||
```{python} | ||
#| eval: false | ||
#| echo: false | ||
!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` | ||
|
||
```bash | ||
fave_recode --help | ||
``` | ||
```{python} | ||
#| filename: terminal | ||
#| echo: false | ||
!fave_recode --help | ||
``` | ||
|
||
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`. | ||
|
||
```bash | ||
ls data | ||
``` | ||
```{python} | ||
#| echo: false | ||
!ls docs/getting-started/data/ | ||
``` | ||
|
||
```bash | ||
fave_recode -i data/josef-fruehwald_speaker.TextGrid -s cmu2phila | ||
|
||
ls data | ||
``` | ||
```{python} | ||
#| echo: false | ||
!fave_recode -i docs/getting-started/data/josef-fruehwald_speaker.TextGrid -s cmu2phila | ||
!ls docs/getting-started/data | ||
``` | ||
|
||
```{python} | ||
#| echo: false | ||
!rm docs/getting-started/data/josef-fruehwald_speaker_recoded.TextGrid | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.