Browse Source

2024.5.10-去除ITN的依赖构建

master
Administrator 1 year ago
parent
commit
2b5af37a50
2 changed files with 0 additions and 11 deletions
  1. +0
    -7
      post_processor/post_processor.cc
  2. +0
    -4
      post_processor/post_processor.h

+ 0
- 7
post_processor/post_processor.cc

@ -16,16 +16,9 @@
#include "post_processor/post_processor.h"
#include <sstream>
#include <vector>
//#include "processor/wetext_processor.h"
#include "utils/string.h"
namespace wenet {
void PostProcessor::InitITNResource(const std::string& tagger_path,
const std::string& verbalizer_path) {
auto itn_processor =
std::make_shared<wetext::Processor>(tagger_path, verbalizer_path);
itn_resource = itn_processor;
}
std::string PostProcessor::ProcessSpace(const std::string& str) {
std::string result = str;

+ 0
- 4
post_processor/post_processor.h

@ -64,10 +64,6 @@ class PostProcessor {
void InitITNResource(const std::string& tagger_path,
const std::string& verbalizer_path);
private:
std::shared_ptr<wetext::Processor> itn_resource = nullptr;
const PostProcessOptions opts_;
public:
WENET_DISALLOW_COPY_AND_ASSIGN(PostProcessor);
};

Loading…
Cancel
Save