phonset is given as fame_phoneset.py. translation key is obtained based on the information.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import sys
|
||||
import os
|
||||
os.chdir(r'C:\Users\A.Kunikoshi\source\repos\acoustic_model\acoustic_model')
|
||||
os.chdir(r'C:\Users\Aki\source\repos\acoustic_model\acoustic_model')
|
||||
|
||||
import tempfile
|
||||
#import configparser
|
||||
@ -12,10 +12,9 @@ import tempfile
|
||||
|
||||
import fame_functions
|
||||
import defaultfiles as default
|
||||
sys.path.append(default.pyhtk_dir)
|
||||
import pyhtk
|
||||
sys.path.append(default.toolbox_dir)
|
||||
import file_handling
|
||||
import file_handling as fh
|
||||
from htk import pyhtk
|
||||
|
||||
|
||||
## ======================= user define =======================
|
||||
@ -94,7 +93,7 @@ if extract_features:
|
||||
hcopy_scp.close()
|
||||
#hcopy_scp = os.path.join(default.htk_dir, 'tmp', 'HCopy.scp')
|
||||
|
||||
# get a list of features (hcopy.scp) from the filelist in FAME! corpus
|
||||
## get a list of features (hcopy.scp) from the filelist in FAME! corpus
|
||||
feature_dir_ = os.path.join(feature_dir, dataset)
|
||||
if not os.path.exists(feature_dir_):
|
||||
os.makedirs(feature_dir_)
|
||||
@ -110,6 +109,7 @@ if extract_features:
|
||||
# a script file for HCompV
|
||||
print(">>> making a script file for HCompV... \n")
|
||||
|
||||
|
||||
## ======================= make a list of features =======================
|
||||
#if make_feature_list:
|
||||
# print("==== make a list of features ====\n")
|
||||
@ -121,7 +121,7 @@ if extract_features:
|
||||
hcompv_scp = os.path.join(tmp_dir, dataset + '.scp')
|
||||
|
||||
#am_func.make_filelist(feature_dir, hcompv_scp)
|
||||
file_handling.make_filelist(feature_dir_, hcompv_scp, '.mfc')
|
||||
fh.make_filelist(feature_dir_, hcompv_scp, '.mfc')
|
||||
|
||||
|
||||
## ======================= convert lexicon from ipa to fame_htk =======================
|
||||
|
Reference in New Issue
Block a user