forked from sp1007/FastSpeech2_vi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
31,238 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,3 +117,6 @@ output/ | |
TextGrid/ | ||
input/ | ||
# hifigan/*.pth.tar | ||
|
||
preprocessed_data/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import os | ||
|
||
org_filename = 'lexicon/vi-mfa.txt' | ||
fixed_filename = 'lexicon/fvi-mfa.txt' | ||
|
||
with open(org_filename, 'r', encoding='utf-8') as f: | ||
with open(fixed_filename, 'w', encoding='utf-8') as g: | ||
dic = {} | ||
for line in f: | ||
parts = line.split('\t') | ||
if parts[0].strip() not in dic: | ||
dic[parts[0].strip()] = ' ' | ||
g.write(line.strip() + ' \n') | ||
|
||
print("done!") |
Oops, something went wrong.