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_