From 528f92f7a2a26cade1c57ccf26b0ba6524e7cae5 Mon Sep 17 00:00:00 2001
From: TnR2 <115166373+TnR2@users.noreply.github.com>
Date: 星期三, 01 十月 2025 14:45:17 +0800
Subject: [PATCH] fix: handle empty strings after event removal in transcription processing (def rich_transcription_postprocess(s)) (#2681)
---
fun_text_processing/inverse_text_normalization/ru/verbalizers/ordinal.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fun_text_processing/inverse_text_normalization/ru/verbalizers/ordinal.py b/fun_text_processing/inverse_text_normalization/ru/verbalizers/ordinal.py
index 7e175d3..348b3a9 100644
--- a/fun_text_processing/inverse_text_normalization/ru/verbalizers/ordinal.py
+++ b/fun_text_processing/inverse_text_normalization/ru/verbalizers/ordinal.py
@@ -1,4 +1,3 @@
-
import pynini
from fun_text_processing.text_normalization.en.graph_utils import DAMO_NOT_QUOTE, GraphFst
from pynini.lib import pynutil
@@ -18,6 +17,6 @@
super().__init__(name="ordinal", kind="verbalize", deterministic=deterministic)
value = pynini.closure(DAMO_NOT_QUOTE)
- graph = pynutil.delete("integer: \"") + value + pynutil.delete("\"")
+ graph = pynutil.delete('integer: "') + value + pynutil.delete('"')
delete_tokens = self.delete_tokens(graph)
self.fst = delete_tokens.optimize()
--
Gitblit v1.9.1