Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SpeechDatasets.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PTAL
Datasets
SpeechDatasets.jl
Commits
e0560a41
Commit
e0560a41
authored
7 months ago
by
Simon Devauchelle
Browse files
Options
Downloads
Patches
Plain Diff
Returning 'formant-bandwidth' tuples in alignments annotations.
parent
241d1e10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3
Returns 'formant-bandwidth' tuple
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/corpora/timit.jl
+7
-5
7 additions, 5 deletions
src/corpora/timit.jl
with
7 additions
and
5 deletions
src/corpora/timit.jl
+
7
−
5
View file @
e0560a41
...
...
@@ -351,7 +351,7 @@ function timit_annotations(dir, formantsdir=nothing)
for
(
root
,
subdirs
,
files
)
in
walkdir
(
dir
)
for
file
in
files
name
,
ext
=
splitext
(
file
)
name
,
_
=
splitext
(
file
)
_
,
dialect
,
spk
=
rsplit
(
root
,
"/"
,
limit
=
3
)
# Annotation files already processed (".wrd" and ".phn")
...
...
@@ -373,15 +373,17 @@ function timit_annotations(dir, formantsdir=nothing)
if
isfile
(
forpath
)
# Read availabled formants values
palign
=
Tuple
{
Int
,
Int
,
String
,
NTuple
{
8
,
Float32
}}[]
palign
=
Tuple
{
Int
,
Int
,
String
,
NTuple
{
2
,
Float32
},
NTuple
{
2
,
Float32
},
NTuple
{
2
,
Float32
},
NTuple
{
2
,
Float32
}}[]
for
line
in
eachline
(
forpath
)
t0
,
t1
,
p
,
f1
,
f2
,
f3
,
f4
,
b1
,
b2
,
b3
,
b4
=
split
(
line
)
push!
(
palign
,
(
parse
(
Int
,
t0
),
parse
(
Int
,
t1
),
String
(
p
),
(
parse
(
Float32
,
f1
),
parse
(
Float32
,
f2
),
parse
(
Float32
,
f3
),
parse
(
Float32
,
f4
),
parse
(
Float32
,
b1
),
parse
(
Float32
,
b2
),
parse
(
Float32
,
b3
),
parse
(
Float32
,
b4
)))
)
(
parse
(
Float32
,
f1
),
parse
(
Float32
,
b1
)),
(
parse
(
Float32
,
f2
),
parse
(
Float32
,
b2
)),
(
parse
(
Float32
,
f3
),
parse
(
Float32
,
b3
)),
(
parse
(
Float32
,
f4
),
parse
(
Float32
,
b4
))
))
end
else
palign
=
Tuple
{
Int
,
Int
,
String
}[]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment