cati
commited on
Commit
·
04da7cb
1
Parent(s):
97ed172
- app.py +5 -3
- vowel_length.py +1 -0
app.py
CHANGED
@@ -27,14 +27,16 @@ with bl:
|
|
27 |
with gr.TabItem("One"):
|
28 |
gr.Markdown(
|
29 |
"""
|
30 |
-
#
|
31 |
-
|
|
|
|
|
32 |
"""
|
33 |
)
|
34 |
|
35 |
with gr.Row():
|
36 |
with gr.Column():
|
37 |
-
wmenu1 = gr.Dropdown([
|
38 |
lmenu1 = gr.Dropdown(["L1", "L2","All"],label="Speaker group")
|
39 |
amenu1 = gr.Dropdown(["MFA", "w2v2"],label="Aligner")
|
40 |
|
|
|
27 |
with gr.TabItem("One"):
|
28 |
gr.Markdown(
|
29 |
"""
|
30 |
+
# Length of long and short Icelandic vowels
|
31 |
+
Choose a word, speaker group, and aligner type. Available speaker groups are native speakers, second-language speakers, or all. Aligner options are Montreal Forced Aligner (MFA) and CTC decoding with Wav2vec-2.0.
|
32 |
+
|
33 |
+
All phoneme durations are measured automatically with no human correction. The purpose of this demo is to evaluate the possible role of such tools in large-scale phonetic research. Therefore, no measurements shown in this demo should be taken as conclusive without some independent verification.
|
34 |
"""
|
35 |
)
|
36 |
|
37 |
with gr.Row():
|
38 |
with gr.Column():
|
39 |
+
wmenu1 = gr.Dropdown([kws,label="Word")
|
40 |
lmenu1 = gr.Dropdown(["L1", "L2","All"],label="Speaker group")
|
41 |
amenu1 = gr.Dropdown(["MFA", "w2v2"],label="Aligner")
|
42 |
|
vowel_length.py
CHANGED
@@ -106,6 +106,7 @@ def runan(kwd,spl,aln,vck,dat,sources):
|
|
106 |
if any([ tuple('X') in el for el in vcd.values()]):
|
107 |
#print("EXCLUDED WORD FOR THIS ALIGNMENT TYPE")
|
108 |
return "EXCLUDED WORD FOR THIS ALIGNMENT TYPE"
|
|
|
109 |
if spl == 'l1':
|
110 |
d = [l for l in dat if l[8].lower() == 'icelandic']
|
111 |
if spl == 'l2':
|
|
|
106 |
if any([ tuple('X') in el for el in vcd.values()]):
|
107 |
#print("EXCLUDED WORD FOR THIS ALIGNMENT TYPE")
|
108 |
return "EXCLUDED WORD FOR THIS ALIGNMENT TYPE"
|
109 |
+
d = dat
|
110 |
if spl == 'l1':
|
111 |
d = [l for l in dat if l[8].lower() == 'icelandic']
|
112 |
if spl == 'l2':
|