From 61ebe45174c6eeefdbd3dbe8bd114172e2a353ff Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 18 May 2024 10:10:35 +0800 Subject: [PATCH] =?UTF-8?q?2024.5.16=20=E6=B5=8B=E8=AF=95=E6=95=B4?= =?UTF-8?q?=E4=BD=93=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kaldi/base/kaldi-common.h | 3 ++- post_processor/processor/wetext_processor.cc | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/kaldi/base/kaldi-common.h b/kaldi/base/kaldi-common.h index cd01ae5..687bef0 100644 --- a/kaldi/base/kaldi-common.h +++ b/kaldi/base/kaldi-common.h @@ -34,7 +34,8 @@ #include "base/kaldi-error.h" #include "base/kaldi-types.h" #include "base/kaldi-utils.h" -#include "fst/wn_log.h" + + // #include "base/io-funcs.h" #include "base/kaldi-math.h" // #include "base/timer.h" diff --git a/post_processor/processor/wetext_processor.cc b/post_processor/processor/wetext_processor.cc index f57a04c..9dd484f 100644 --- a/post_processor/processor/wetext_processor.cc +++ b/post_processor/processor/wetext_processor.cc @@ -13,14 +13,14 @@ // limitations under the License. #include "wetext_processor.h" -#include +#include "fst/string.h" namespace wetext { Processor::Processor(const std::string& tagger_path, const std::string& verbalizer_path) { tagger_.reset(StdVectorFst::Read(tagger_path)); verbalizer_.reset(StdVectorFst::Read(verbalizer_path)); - compiler_ = std::make_shared>(fst::TokenType::BYTE); - printer_ = std::make_shared>(fst::TokenType::BYTE); + compiler_ = std::make_shared>(fst::StringTokenType::BYTE); + printer_ = std::make_shared>(fst::StringTokenType::BYTE); if (tagger_path.find("_tn_") != tagger_path.npos) { parse_type_ = ParseType::kTN;