From 9f04fd130c8436b5a23c4c334d8fb7ea11a95ba6 Mon Sep 17 00:00:00 2001
From: Ziyao Wang <ziyaowang318@gmail.com>
Date: 星期一, 29 七月 2024 09:47:45 +0800
Subject: [PATCH] Fix invalid escape sequence '\w' in RegEx due to 'r' missing (#1967)
---
funasr/metrics/wer.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/funasr/metrics/wer.py b/funasr/metrics/wer.py
index ab07bc2..6bac303 100755
--- a/funasr/metrics/wer.py
+++ b/funasr/metrics/wer.py
@@ -33,8 +33,8 @@
if cn_postprocess:
value = " ".join(value)
value = value.replace(" ", "")
- if value[0] == "璇�":
- value = value[1:]
+ # if value[0] == "璇�":
+ # value = value[1:]
value = [x for x in value]
hyp_dict[key] = value
with open(ref_file, "r") as ref_reader:
--
Gitblit v1.9.1