Skip to content

Commit d98c1d1

Browse files
Merge pull request #238 from MontrealCorpusTools/case-studies
Fixed more case study typos
2 parents e7859c4 + 4303087 commit d98c1d1

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

docs/source/case_study_sibilants.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,21 @@ In order for the script to run, we must also download a few additional scripts d
107107
108108
Making sure we're in the ``sibilants`` folder, we'll now run ``4_generate-mts-measures.R`` from the command line. We do this twice: the first pass will generate the utterance mean spectra used for normalization, and the second pass will generate the sibilant spectra.
109109

110-
First, we run the command: ``Rscript 4_generate-mts-measures.R ./output/ParlBleu-subset_utterances.csv ../ParlBleu-subset/ output/ -f 0.035 -d -w discourse -p mean_spectrum``. Here's what each argument does:
110+
First, we run the command:
111+
112+
``Rscript 4_generate-mts-measures.R ./output/ParlBleu-subset_utterances.csv ../ParlBleu-subset/ output/ -f 0.035 -d -w discourse -p mean_spectrum``
113+
114+
Here's what each argument does:
111115

112116
1. The positional arguments specify (in order) the path to the CSV file containing the utterances to measure, the path to the root of the corpus, and the path to the directory where the output data (the RData file containing the utterance spectra) should be saved;
113117
2. The ``-f`` flag specifies the length of the analysis window to use in seconds--here, ``0.035`` (35 ms);
114118
3. The ``-d`` flag tells the script that the corpora is organized such that each speaker has their own directory (rather than all sound files being in a single directory);
115119
4. The ``-w`` flag specifies the column of the CSV which contains the sound file names;
116120
5. The ``-p`` flag, with the value `mean_spectrum`, tells the program we want spectra for *utterances* (rather than for *sibilants*).
117121

118-
Once this finishes, we run the command: `Rscript 4_generate-mts-measures.R ./output/ParlBleu-subset_sibilants.csv ../ParlBleu-subset/ output/ -f 0.035 -d -w discourse -p sibilant -z -m 0.5`. Here's what each argument does:
122+
Once this finishes, we run the command: ``Rscript 4_generate-mts-measures.R ./output/ParlBleu-subset_sibilants.csv ../ParlBleu-subset/ output/ -f 0.035 -d -w discourse -p sibilant -z -m 0.5``
123+
124+
Here's what each argument does:
119125

120126
1. The positional arguments do the same thing as above (note: the output directory must be the same as that used in the `mean_spectrum` step);
121127
2. The ``-f``, ``-d``, ``-w`` flags do the same as above;
@@ -130,7 +136,7 @@ Once this finishes, we run the command: `Rscript 4_generate-mts-measures.R ./out
130136
Step 5: Analysis
131137
================
132138

133-
Finally, we make a quick plot of each of the three measures by phone and by speaker.
139+
Finally, we use an R script to make a quick plot of each of the three measures by phone and by speaker.
134140

135141
.. literalinclude:: ../../examples/case_studies/sibilants/5_analysis.R
136142
:language: r

docs/source/case_study_vowel_dynamics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ By default, the query will output every measurement from the beginning to the en
180180
Step 5: Analysis
181181
================
182182

183-
Finally, we plot the average position of all phones in F1 × F2 space. We exmaine only the middle portion of the vowel here (the endpoints are not always theoretically interesting, as they can be disporprotionately affected by coarticulation with surrounding vowels). We draw the vowel label at the 25% timepoint: this is also the beginning of an arrow whose head points to the 75% timepoint.
183+
Finally, we use an R script to plot the average position of all phones in F1 × F2 space. We exmaine only the middle portion of the vowel here (the endpoints are not always theoretically interesting, as they can be disporprotionately affected by coarticulation with surrounding vowels). We draw the vowel label at the 25% timepoint: this is also the beginning of an arrow whose head points to the 75% timepoint.
184184

185185
.. literalinclude:: ../../examples/case_studies/vowel_dynamics/5_analysis.R
186186
:language: r

0 commit comments

Comments
 (0)