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
e030c1a2
Commit
e030c1a2
authored
11 months ago
by
simon devauchelle
Browse files
Options
Downloads
Patches
Plain Diff
No oovs keywords + removing ina corpus references
parent
9feaabf5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/corpora/ina_corpus.jl
+0
-0
0 additions, 0 deletions
src/corpora/ina_corpus.jl
src/lexicons.jl
+2
-15
2 additions, 15 deletions
src/lexicons.jl
with
2 additions
and
15 deletions
src/corpora/ina_corpus.jl
deleted
100644 → 0
+
0
−
0
View file @
9feaabf5
This diff is collapsed.
Click to expand it.
src/lexicons.jl
+
2
−
15
View file @
e030c1a2
...
...
@@ -76,11 +76,10 @@ end
"""
MFAFRDICT(path)
Return the french dictionary of pronunciation as provided by MFA (french_mfa v2.0.0a) with OOVs words
generated by G2P model (french_mfa) on INA Diachronic Corpus.
Return the french dictionary of pronunciation as provided by MFA (french_mfa v2.0.0a)
"""
function
MFAFRDICT
(
path
;
oovs
=
""
)
function
MFAFRDICT
(
path
)
if
!
isfile
(
path
)
mkpath
(
dirname
(
path
))
dir
=
mktempdir
()
...
...
@@ -96,17 +95,5 @@ function MFAFRDICT(path; oovs="")
lexicon
[
word
]
=
prononciations
end
end
# Add out-of-vocabulary words
if
isfile
(
oovs
)
open
(
oovs
,
"r"
)
do
o
for
line
in
eachline
(
o
)
word
,
pron
...
=
split
(
line
)
prononciations
=
get
(
lexicon
,
word
,
[])
push!
(
prononciations
,
pron
)
lexicon
[
word
]
=
prononciations
end
end
end
lexicon
end
\ No newline at end of file
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