From cf8e000a84e888495dcf30c4dbfecea1ee7ab4e2 Mon Sep 17 00:00:00 2001
From: jmwang66 <wangjiaming.wjm@alibaba-inc.com>
Date: 星期一, 07 八月 2023 16:13:37 +0800
Subject: [PATCH] Merge pull request #807 from alibaba-damo-academy/dev_wjm

---
 egs/callhome/eend_ola/local/split.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/egs/callhome/eend_ola/local/split.py b/egs/callhome/eend_ola/local/split.py
index 34b7bb1..7ad1bad 100644
--- a/egs/callhome/eend_ola/local/split.py
+++ b/egs/callhome/eend_ola/local/split.py
@@ -59,8 +59,8 @@
                 utt2spk_dict[rec].append((parts[0], parts[1]))
 
     for file in scp_files:
-        scp_file = work_path + file
-        idx = scp_file.split('.')[-2]
+        scp_file = os.path.join(work_path, file)
+        idx = scp_file.split('.')[-1]
         reco2dur_file = os.path.join(work_path, 'reco2dur.{}'.format(str(idx)))
         spk2utt_file = os.path.join(work_path, 'spk2utt.{}'.format(str(idx)))
         segment_file = os.path.join(work_path, 'segments.{}'.format(str(idx)))

--
Gitblit v1.9.1