From edd41f5a308971024c76fa4b0d9f4235a12a4fcf Mon Sep 17 00:00:00 2001
From: 志浩 <neo.dzh@alibaba-inc.com>
Date: 星期二, 01 八月 2023 17:38:16 +0800
Subject: [PATCH] TOLD/SOND: add path.sh
---
egs/callhome/diarization/sond/run.sh | 2 +-
egs/callhome/diarization/sond/path.sh | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/egs/callhome/diarization/sond/path.sh b/egs/callhome/diarization/sond/path.sh
new file mode 100644
index 0000000..5721f3f
--- /dev/null
+++ b/egs/callhome/diarization/sond/path.sh
@@ -0,0 +1,5 @@
+export FUNASR_DIR=$PWD/../../..
+
+# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
+export PYTHONIOENCODING=UTF-8
+export PATH=$FUNASR_DIR/funasr/bin:$PATH
\ No newline at end of file
diff --git a/egs/callhome/diarization/sond/run.sh b/egs/callhome/diarization/sond/run.sh
index 9f09559..d4ae10c 100644
--- a/egs/callhome/diarization/sond/run.sh
+++ b/egs/callhome/diarization/sond/run.sh
@@ -9,7 +9,7 @@
# We recommend you run this script stage by stage.
# environment configuration
-kaldi_root=/home/neo.dzh/kaldi
+kaldi_root=
if [ -z "${kaldi_root}" ]; then
echo "We need kaldi to prepare dataset, extract fbank features, please install kaldi first and set kaldi_root."
--
Gitblit v1.9.1