|
@ -16,16 +16,9 @@ |
|
|
#include "post_processor/post_processor.h"
|
|
|
#include "post_processor/post_processor.h"
|
|
|
#include <sstream>
|
|
|
#include <sstream>
|
|
|
#include <vector>
|
|
|
#include <vector>
|
|
|
//#include "processor/wetext_processor.h"
|
|
|
|
|
|
#include "utils/string.h"
|
|
|
#include "utils/string.h"
|
|
|
|
|
|
|
|
|
namespace wenet { |
|
|
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 PostProcessor::ProcessSpace(const std::string& str) { |
|
|
std::string result = str; |
|
|
std::string result = str; |
|
|