diff --git a/examples/aishell/s0/path.sh b/examples/aishell/s0/path.sh index 552b96783b930b5d1d7cc94a919dc4c71e1fdde2..e6d3a655b49337a33d7697e94f1be541ac2db780 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 6214c8acea38a11a67a1b796119795616d0c813a..6807a9505ae68a16c59ec4571f154464423cfbf2 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 30adb6ca029e9accc094f19e1764069ce54d8538..29841bc10130a012d5d5eb92855a0394e9acff93 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 84e2de7d0869a1ae50df6e148926e71ee18b6089..f8fdd82d740ffc0ed7d8f996ba75ee7f02fda811 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 b4c625f958d3f85372dfe93bf13aee9b45f08175..482177dc6367acc8a4eb7fb71d66c3271f763645 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 777da29efebd1a732258438bca0b9709611c4073..8a9345f2ec18e0bb5fc77906d068cbf6087ead04 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 22fb12559e0f9398ee13374188ce9aafb9aac4b5..457f7e548cbc777454a0ded763bd5f727f30a093 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 22fb12559e0f9398ee13374188ce9aafb9aac4b5..457f7e548cbc777454a0ded763bd5f727f30a093 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 5f580bc4ba5c69accd4974466439e76821e21454..cbd1d82c06060af1f9fd658f038d566dd5341506 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 9da641e19603a4140c27e0732a529d60689ee132..2023788944693b00350bf8ced628d73148280793 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 0000000000000000000000000000000000000000..5664b06b31a299b662df6d87e07222ecae1d1d5f --- /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 10a3e7f5799d8dda8c3c39a5c5ef63c43a245d89..755e044614f921037bf16b8e65458ed15c85b3e3 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 881a5b9189a72a9dbcef033345a5e00ca611b4a4..a7f60425f304f4e48dd06bfea43e07b9fc191d26 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 7cec3a24d3d80db44e7db6339e80cdd698fe2aec..30689eee7464da499830e4a47a8781fde1ca3c0d 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 08e13c1998d7322c908732156214f15a23ee4c9d..fc953bebfe2a10d8da74ca6f7d7e393c378c453c 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 a632babe405806b5d04ed8859d0c65cfa397076c..29841bc10130a012d5d5eb92855a0394e9acff93 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 777da29efebd1a732258438bca0b9709611c4073..8a9345f2ec18e0bb5fc77906d068cbf6087ead04 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 30adb6ca029e9accc094f19e1764069ce54d8538..29841bc10130a012d5d5eb92855a0394e9acff93 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