Browse Source

2024.5.16 测试整体构建

master
Administrator 1 year ago
parent
commit
61ebe45174
2 changed files with 5 additions and 4 deletions
  1. +2
    -1
      kaldi/base/kaldi-common.h
  2. +3
    -3
      post_processor/processor/wetext_processor.cc

+ 2
- 1
kaldi/base/kaldi-common.h

@ -34,7 +34,8 @@
#include "base/kaldi-error.h"
#include "base/kaldi-types.h"
#include "base/kaldi-utils.h"
#include "fst/wn_log.h"
// #include "base/io-funcs.h"
#include "base/kaldi-math.h"
// #include "base/timer.h"

+ 3
- 3
post_processor/processor/wetext_processor.cc

@ -13,14 +13,14 @@
// limitations under the License.
#include "wetext_processor.h"
#include <fst/string.h>
#include "fst/string.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::TokenType::BYTE);
printer_ = std::make_shared<StringPrinter<StdArc>>(fst::TokenType::BYTE);
compiler_ = std::make_shared<StringCompiler<StdArc>>(fst::StringTokenType::BYTE);
printer_ = std::make_shared<StringPrinter<StdArc>>(fst::StringTokenType::BYTE);
if (tagger_path.find("_tn_") != tagger_path.npos) {
parse_type_ = ParseType::kTN;

Loading…
Cancel
Save