From 2b5af37a508c641957ea77e08ca6f98b08cfc423 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 10 May 2024 10:41:36 +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 | 7 ------- post_processor/post_processor.h | 4 ---- 2 files changed, 11 deletions(-) diff --git a/post_processor/post_processor.cc b/post_processor/post_processor.cc index 33d137d..a9c704e 100644 --- a/post_processor/post_processor.cc +++ b/post_processor/post_processor.cc @@ -16,16 +16,9 @@ #include "post_processor/post_processor.h" #include #include -//#include "processor/wetext_processor.h" #include "utils/string.h" namespace wenet { -void PostProcessor::InitITNResource(const std::string& tagger_path, - const std::string& verbalizer_path) { - auto itn_processor = - std::make_shared(tagger_path, verbalizer_path); - itn_resource = itn_processor; -} std::string PostProcessor::ProcessSpace(const std::string& str) { std::string result = str; diff --git a/post_processor/post_processor.h b/post_processor/post_processor.h index 07f8cdc..bbeed9a 100644 --- a/post_processor/post_processor.h +++ b/post_processor/post_processor.h @@ -64,10 +64,6 @@ class PostProcessor { void InitITNResource(const std::string& tagger_path, const std::string& verbalizer_path); - private: - std::shared_ptr itn_resource = nullptr; - const PostProcessOptions opts_; - public: WENET_DISALLOW_COPY_AND_ASSIGN(PostProcessor); };