From 4a5517008cb08298a4a7fa370e0351c2a29ad68e Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 17 May 2024 09:09: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/CMakeLists.txt | 2 +- kaldi/base/kaldi-error.h | 2 +- post_processor/processor/wetext_processor.cc | 14 ++------------ 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/kaldi/CMakeLists.txt b/kaldi/CMakeLists.txt index 68a3ecd..84b54e6 100644 --- a/kaldi/CMakeLists.txt +++ b/kaldi/CMakeLists.txt @@ -12,7 +12,7 @@ add_library(kaldi-util util/simple-io-funcs.cc util/text-utils.cc ) -target_link_libraries(kaldi-util PUBLIC utils) +target_link_libraries(kaldi-util PUBLIC utils ${OPENFST_LIBRARYS}) add_library(kaldi-decoder lat/determinize-lattice-pruned.cc diff --git a/kaldi/base/kaldi-error.h b/kaldi/base/kaldi-error.h index 74c6b90..d15656c 100644 --- a/kaldi/base/kaldi-error.h +++ b/kaldi/base/kaldi-error.h @@ -17,7 +17,7 @@ #ifndef KALDI_BASE_KALDI_ERROR_H_ #define KALDI_BASE_KALDI_ERROR_H_ 1 -#include "utils/log.h" +#include "fst/log.h" namespace kaldi { diff --git a/post_processor/processor/wetext_processor.cc b/post_processor/processor/wetext_processor.cc index 36a675a..a186071 100644 --- a/post_processor/processor/wetext_processor.cc +++ b/post_processor/processor/wetext_processor.cc @@ -14,23 +14,13 @@ #include "wetext_processor.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include 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::StringTokenType::BYTE); - printer_ = std::make_shared>(fst::StringTokenType::BYTE); + compiler_ = std::make_shared>(fst::TokenType::BYTE); + printer_ = std::make_shared>(fst::TokenType::BYTE); if (tagger_path.find("_tn_") != tagger_path.npos) { parse_type_ = ParseType::kTN;