Description Details Author(s) References Examples
Package to make acoustic cues to use with ndl or ndl2.
The packages main function is makeCues. readTextGridFast,
readTextGridRobust, readESPSAnnotation and
readWavesurfer are helper functions that read the corresponding annotation
files and return a data.frame. CorpusCoder codes a whole corpus given a vector
with the path to and names of wave files and a vector for the annotation files.
word_classification_data provides data from Arnold et al 2017
https://doi.org/10.1371/journal.pone.0174623
Denis Arnold
Reference to to paper in accepted form.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
# assuming the corpus contains wave files and praat textgrids
setwd(~/Data/MyCorpus) # assuming everything is in one place
#assuming you have one wav for each annotation
Waves=list.files(pattern="*.wav",recursive=T)
Annotations=list.files(pattern="*.TextGrids",recursive=T) # see above
# Lets assume the annotation is in UTF-8 and you want everything from a tier called words
# Lets assume tha you want to dismiss everything in <|>
# Lets assume that have 4 cores available
# Lets assume that you want the defaut settings for the parameters
Data=CorpusCoderCorpusCoder(Waves, Annotations, AnnotationType = "TextGrid",
TierName = "words", Dismiss = "<|>", Encoding, Fast = F, Cores = 4,
IntensitySteps = 5, Smooth = 800)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.