From 874620b40a827f464637d32905e6553d268e72cf Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 18 May 2024 09:57:59 +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 --- post_processor/processor/wetext_processor.cc | 2 +- post_processor/utils/wetext_log.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/post_processor/processor/wetext_processor.cc b/post_processor/processor/wetext_processor.cc index b6ed6d0..f57a04c 100644 --- a/post_processor/processor/wetext_processor.cc +++ b/post_processor/processor/wetext_processor.cc @@ -19,7 +19,7 @@ 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); + compiler_ = std::make_shared>(fst::TokenType::BYTE); printer_ = std::make_shared>(fst::TokenType::BYTE); if (tagger_path.find("_tn_") != tagger_path.npos) { diff --git a/post_processor/utils/wetext_log.h b/post_processor/utils/wetext_log.h index 7b00d35..fcdecc6 100644 --- a/post_processor/utils/wetext_log.h +++ b/post_processor/utils/wetext_log.h @@ -18,6 +18,8 @@ // Because openfst is a dynamic library compiled with gflags/glog, we must use // the gflags/glog from openfst to avoid them linked both statically and // dynamically into the executable. -#include "../../utils/wn_log.h" +#ifndef FST_LOG_H_ +#include "fst/log.h" +#endif #endif // UTILS_WETEXT_LOG_H_