Browse Source

2024.5.16 测试整体构建

master
Administrator 1 year ago
parent
commit
874620b40a
2 changed files with 4 additions and 2 deletions
  1. +1
    -1
      post_processor/processor/wetext_processor.cc
  2. +3
    -1
      post_processor/utils/wetext_log.h

+ 1
- 1
post_processor/processor/wetext_processor.cc

@ -19,7 +19,7 @@ Processor::Processor(const std::string& tagger_path,
const std::string& verbalizer_path) { const std::string& verbalizer_path) {
tagger_.reset(StdVectorFst::Read(tagger_path)); tagger_.reset(StdVectorFst::Read(tagger_path));
verbalizer_.reset(StdVectorFst::Read(verbalizer_path)); verbalizer_.reset(StdVectorFst::Read(verbalizer_path));
// compiler_ = std::make_shared<StringCompiler<StdArc>>(fst::TokenType::BYTE);
compiler_ = std::make_shared<StringCompiler<StdArc>>(fst::TokenType::BYTE);
printer_ = std::make_shared<StringPrinter<StdArc>>(fst::TokenType::BYTE); printer_ = std::make_shared<StringPrinter<StdArc>>(fst::TokenType::BYTE);
if (tagger_path.find("_tn_") != tagger_path.npos) { if (tagger_path.find("_tn_") != tagger_path.npos) {

+ 3
- 1
post_processor/utils/wetext_log.h

@ -18,6 +18,8 @@
// Because openfst is a dynamic library compiled with gflags/glog, we must use // 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 // the gflags/glog from openfst to avoid them linked both statically and
// dynamically into the executable. // dynamically into the executable.
#include "../../utils/wn_log.h"
#ifndef FST_LOG_H_
#include "fst/log.h"
#endif
#endif // UTILS_WETEXT_LOG_H_ #endif // UTILS_WETEXT_LOG_H_

Loading…
Cancel
Save