From 21e917630e9c0a6f778c663480a1f62ac2995a53 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 10 May 2024 10:53:18 +0800 Subject: [PATCH] =?UTF-8?q?2024.5.10-=E5=8E=BB=E9=99=A4ITN=E7=9A=84?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- post_processor/post_processor.cc | 10 +++++----- post_processor/post_processor.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/post_processor/post_processor.cc b/post_processor/post_processor.cc index a9c704e..8b752f3 100644 --- a/post_processor/post_processor.cc +++ b/post_processor/post_processor.cc @@ -78,11 +78,11 @@ std::string PostProcessor::Process(const std::string& str, bool finish) { result = ProcessSymbols(str); result = ProcessSpace(result); // TODO(xcsong): do punctuation if finish == true - if (finish == true && opts_.itn) { - if (nullptr != itn_resource) { - result = itn_resource->Normalize(result); - } - } +// if (finish == true && opts_.itn) { +// if (nullptr != itn_resource) { +// result = itn_resource->Normalize(result); +// } +// } return result; } diff --git a/post_processor/post_processor.h b/post_processor/post_processor.h index c8d3a78..ba30214 100644 --- a/post_processor/post_processor.h +++ b/post_processor/post_processor.h @@ -64,7 +64,7 @@ class PostProcessor { void InitITNResource(const std::string& tagger_path, const std::string& verbalizer_path); private: - std::shared_ptr itn_resource = nullptr; +// std::shared_ptr itn_resource = nullptr; const PostProcessOptions opts_; public: WENET_DISALLOW_COPY_AND_ASSIGN(PostProcessor);