diff --git a/examples/aishell/s0/path.sh b/examples/aishell/s0/path.sh index 552b9678..e6d3a655 100644 --- a/examples/aishell/s0/path.sh +++ b/examples/aishell/s0/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../../ +export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/aishell/s1/path.sh b/examples/aishell/s1/path.sh index 6214c8ac..6807a950 100644 --- a/examples/aishell/s1/path.sh +++ b/examples/aishell/s1/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../../ +export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/callcenter/s1/path.sh b/examples/callcenter/s1/path.sh index 30adb6ca..29841bc1 100644 --- a/examples/callcenter/s1/path.sh +++ b/examples/callcenter/s1/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../../ +export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/cc-cedict/path.sh b/examples/cc-cedict/path.sh index 84e2de7d..f8fdd82d 100644 --- a/examples/cc-cedict/path.sh +++ b/examples/cc-cedict/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../ +export MAIN_ROOT=`realpath ${PWD}/../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/chinese_g2p/path.sh b/examples/chinese_g2p/path.sh index b4c625f9..482177dc 100644 --- a/examples/chinese_g2p/path.sh +++ b/examples/chinese_g2p/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../ +export MAIN_ROOT=`realpath ${PWD}/../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/librispeech/s0/path.sh b/examples/librispeech/s0/path.sh index 777da29e..8a9345f2 100644 --- a/examples/librispeech/s0/path.sh +++ b/examples/librispeech/s0/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../../ +export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/librispeech/s1/path.sh b/examples/librispeech/s1/path.sh index 22fb1255..457f7e54 100644 --- a/examples/librispeech/s1/path.sh +++ b/examples/librispeech/s1/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../../ +export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${PWD}/utils:${PATH} export LC_ALL=C diff --git a/examples/librispeech/s2/path.sh b/examples/librispeech/s2/path.sh index 22fb1255..457f7e54 100644 --- a/examples/librispeech/s2/path.sh +++ b/examples/librispeech/s2/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../../ +export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${PWD}/utils:${PATH} export LC_ALL=C diff --git a/examples/ngram_lm/s0/path.sh b/examples/ngram_lm/s0/path.sh index 5f580bc4..cbd1d82c 100644 --- a/examples/ngram_lm/s0/path.sh +++ b/examples/ngram_lm/s0/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../../ +export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/spm/path.sh b/examples/spm/path.sh index 9da641e1..20237889 100644 --- a/examples/spm/path.sh +++ b/examples/spm/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../ +export MAIN_ROOT=`realpath ${PWD}/../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/ted_en_zh/README.md b/examples/ted_en_zh/README.md new file mode 100644 index 00000000..5664b06b --- /dev/null +++ b/examples/ted_en_zh/README.md @@ -0,0 +1,3 @@ +# TED En -> Zh + +* t0 for u2 speech translation diff --git a/examples/ted_en_zh/conf/transformer.yaml b/examples/ted_en_zh/t0/conf/transformer.yaml similarity index 97% rename from examples/ted_en_zh/conf/transformer.yaml rename to examples/ted_en_zh/t0/conf/transformer.yaml index 10a3e7f5..755e0446 100644 --- a/examples/ted_en_zh/conf/transformer.yaml +++ b/examples/ted_en_zh/t0/conf/transformer.yaml @@ -3,8 +3,8 @@ data: train_manifest: data/manifest.train.tiny dev_manifest: data/manifest.dev test_manifest: data/manifest.test - min_input_len: 0.5 # second - max_input_len: 3000.0 # second + min_input_len: 0.05 # second + max_input_len: 30.0 # second min_output_len: 0.0 # tokens max_output_len: 400.0 # tokens min_output_input_ratio: 0.01 diff --git a/examples/ted_en_zh/conf/transformer_joint_noam.yaml b/examples/ted_en_zh/t0/conf/transformer_joint_noam.yaml similarity index 100% rename from examples/ted_en_zh/conf/transformer_joint_noam.yaml rename to examples/ted_en_zh/t0/conf/transformer_joint_noam.yaml diff --git a/examples/ted_en_zh/local/data.sh b/examples/ted_en_zh/t0/local/data.sh similarity index 100% rename from examples/ted_en_zh/local/data.sh rename to examples/ted_en_zh/t0/local/data.sh diff --git a/examples/ted_en_zh/local/test.sh b/examples/ted_en_zh/t0/local/test.sh similarity index 100% rename from examples/ted_en_zh/local/test.sh rename to examples/ted_en_zh/t0/local/test.sh diff --git a/examples/ted_en_zh/local/train.sh b/examples/ted_en_zh/t0/local/train.sh similarity index 100% rename from examples/ted_en_zh/local/train.sh rename to examples/ted_en_zh/t0/local/train.sh diff --git a/examples/ted_en_zh/path.sh b/examples/ted_en_zh/t0/path.sh similarity index 88% rename from examples/ted_en_zh/path.sh rename to examples/ted_en_zh/t0/path.sh index 881a5b91..a7f60425 100644 --- a/examples/ted_en_zh/path.sh +++ b/examples/ted_en_zh/t0/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../ +export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/ted_en_zh/run.sh b/examples/ted_en_zh/t0/run.sh similarity index 100% rename from examples/ted_en_zh/run.sh rename to examples/ted_en_zh/t0/run.sh diff --git a/examples/text_normalization/path.sh b/examples/text_normalization/path.sh index 7cec3a24..30689eee 100644 --- a/examples/text_normalization/path.sh +++ b/examples/text_normalization/path.sh @@ -1,4 +1,5 @@ -export MAIN_ROOT=${PWD}/../../ +export MAIN_ROOT=`realpath ${PWD}/../../` + export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/thchs30/a0/path.sh b/examples/thchs30/a0/path.sh index 08e13c19..fc953beb 100644 --- a/examples/thchs30/a0/path.sh +++ b/examples/thchs30/a0/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../../ +export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/timit/s1/path.sh b/examples/timit/s1/path.sh index a632babe..29841bc1 100644 --- a/examples/timit/s1/path.sh +++ b/examples/timit/s1/path.sh @@ -1,4 +1,5 @@ -export MAIN_ROOT=${PWD}/../../../ +export MAIN_ROOT=`realpath ${PWD}/../../../` + export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/tiny/s0/path.sh b/examples/tiny/s0/path.sh index 777da29e..8a9345f2 100644 --- a/examples/tiny/s0/path.sh +++ b/examples/tiny/s0/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../../ +export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/tiny/s1/path.sh b/examples/tiny/s1/path.sh index 30adb6ca..29841bc1 100644 --- a/examples/tiny/s1/path.sh +++ b/examples/tiny/s1/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../../ +export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C