Browse Source

2024.5.16 测试整体构建

master
Administrator 1 year ago
parent
commit
4a5517008c
3 changed files with 4 additions and 14 deletions
  1. +1
    -1
      kaldi/CMakeLists.txt
  2. +1
    -1
      kaldi/base/kaldi-error.h
  3. +2
    -12
      post_processor/processor/wetext_processor.cc

+ 1
- 1
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

+ 1
- 1
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 {

+ 2
- 12
post_processor/processor/wetext_processor.cc

@ -14,23 +14,13 @@
#include "wetext_processor.h"
#include <fst/string.h>
#include <fst/compat.h>
#include <fst/extensions/mpdt/compose.h>
#include <fst/extensions/mpdt/mpdt.h>
#include <fst/extensions/pdt/compose.h>
#include <fst/extensions/pdt/pdt.h>
#include <fst/extensions/pdt/shortest-path.h>
#include <fst/arc.h>
#include <fst/fstlib.h>
#include <fst/fst.h>
#include <fst/vector-fst.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<StringCompiler<StdArc>>(fst::StringTokenType::BYTE);
printer_ = std::make_shared<StringPrinter<StdArc>>(fst::StringTokenType::BYTE);
compiler_ = std::make_shared<StringCompiler<StdArc>>(fst::TokenType::BYTE);
printer_ = std::make_shared<StringPrinter<StdArc>>(fst::TokenType::BYTE);
if (tagger_path.find("_tn_") != tagger_path.npos) {
parse_type_ = ParseType::kTN;

Loading…
Cancel
Save