Python Usage
Installation
To use new-fave, you will need to have python installed on your computer. Currently, new-fave supports python versions 3.10, 3.11, or 3.12. If you are not sure whether python is installed, or what version is installed, here is a good tutorial for figuring that out.
Once you have python successfully installed, you can install new-fave at the command-line like so.
# command-line
pip install new-fave
Usage
Audio + TextGrid
See fave_audio_textgrid
and write_data
. And if desired, SpeakerCollection
.
from new_fave import fave_audio_textgrid, write_data
= fave_audio_textgrid(
speakers = "speaker1.wav",
audio_path = "speaker2.TextGrid",
textgrid_path ## all optional args below
= "all",
speakers = "cmu2labov",
recode_rules = "cmu_parser",
labelset_parser = "fave",
point_heuristic = "default"
ft_config
)
write_data(
speakers, = "output_dir"
destination )
Corpus
See fave_corpus
and write_data
. And if desired, SpeakerCollection
.
from new_fave import fave_corpus, write_data
= fave_corpus(
speakers = "corpus/",
corpus_path ## all optional args below
= "all",
speakers = "cmu2labov",
recode_rules = "cmu_parser",
labelset_parser = "fave",
point_heuristic = "default"
ft_config
)
write_data(
speakers, = "output_dir"
destination )
Subcorpora
See fave_subcorpora
and write_data
. And if desired, SpeakerCollection
.
from new_fave import fave_subcorpora, write_data
= fave_subcorpora(
speakers = "project/speakers/*/",
subcorpora_glob ## all optional args below
= "all",
speakers = "cmu2labov",
recode_rules = "cmu_parser",
labelset_parser = "fave",
point_heuristic = "default"
ft_config
)
write_data(
speakers, = "output_dir"
destination )