From adcee8828ef5d78b575043954deb662a35e318f7 Mon Sep 17 00:00:00 2001
From: huangmingming <huangmingming@deepscience.cn>
Date: 星期一, 30 一月 2023 16:02:54 +0800
Subject: [PATCH] update the minimum size of audio
---
fun_text_processing/inverse_text_normalization/zh/verbalizers/verbalize_final.py | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/fun_text_processing/inverse_text_normalization/zh/verbalizers/verbalize_final.py b/fun_text_processing/inverse_text_normalization/zh/verbalizers/verbalize_final.py
index 25133e9..62badfc 100755
--- a/fun_text_processing/inverse_text_normalization/zh/verbalizers/verbalize_final.py
+++ b/fun_text_processing/inverse_text_normalization/zh/verbalizers/verbalize_final.py
@@ -1,14 +1,3 @@
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
import pynini
from fun_text_processing.inverse_text_normalization.zh.verbalizers.verbalize import VerbalizeFst
@@ -37,5 +26,5 @@
+ delete_space
+ pynutil.delete("}")
)
- graph = delete_space + pynini.closure(graph + delete_space) + graph + delete_space
+ graph = delete_space + pynini.closure(graph + delete_extra_space) + graph + delete_space
self.fst = graph
--
Gitblit v1.9.1