Skip to content

Commit 1abc4bd

Browse files
committed
fix: revert to TokenType for csukuangfj/openfst fork compatibility
The project uses csukuangfj/openfst v1.8.5 which keeps the original fst::TokenType enum. The previous commit incorrectly renamed it to StringTokenType (which is used in official OpenFst releases).
1 parent e42e224 commit 1abc4bd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

runtime/processor/wetext_processor.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414

1515
#include "processor/wetext_processor.h"
1616

17-
using fst::StringTokenType;
17+
using fst::TokenType;
1818

1919
namespace wetext {
2020
Processor::Processor(const std::string& tagger_path,
2121
const std::string& verbalizer_path) {
2222
tagger_.reset(StdVectorFst::Read(tagger_path));
2323
verbalizer_.reset(StdVectorFst::Read(verbalizer_path));
24-
compiler_ = std::make_shared<StringCompiler<StdArc>>(StringTokenType::BYTE);
25-
printer_ = std::make_shared<StringPrinter<StdArc>>(StringTokenType::BYTE);
24+
compiler_ = std::make_shared<StringCompiler<StdArc>>(TokenType::BYTE);
25+
printer_ = std::make_shared<StringPrinter<StdArc>>(TokenType::BYTE);
2626

2727
if (tagger_path.find("zh_tn_") != tagger_path.npos) {
2828
parse_type_ = ParseType::kZH_TN;

0 commit comments

Comments
 (0)