We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eabb5b9 commit c347f64Copy full SHA for c347f64
1 file changed
runtime/processor/wetext_processor.cc
@@ -14,15 +14,15 @@
14
15
#include "processor/wetext_processor.h"
16
17
-using fst::TokenType;
+using fst::StringTokenType;
18
19
namespace wetext {
20
Processor::Processor(const std::string& tagger_path,
21
const std::string& verbalizer_path) {
22
tagger_.reset(StdVectorFst::Read(tagger_path));
23
verbalizer_.reset(StdVectorFst::Read(verbalizer_path));
24
- compiler_ = std::make_shared<StringCompiler<StdArc>>(TokenType::BYTE);
25
- printer_ = std::make_shared<StringPrinter<StdArc>>(TokenType::BYTE);
+ compiler_ = std::make_shared<StringCompiler<StdArc>>(StringTokenType::BYTE);
+ printer_ = std::make_shared<StringPrinter<StdArc>>(StringTokenType::BYTE);
26
27
if (tagger_path.find("zh_tn_") != tagger_path.npos) {
28
parse_type_ = ParseType::kZH_TN;
0 commit comments