From 707c13b75ca2e17c0602f6282b323925c2b0c631 Mon Sep 17 00:00:00 2001 From: co63oc Date: Thu, 20 Mar 2025 15:49:01 +0800 Subject: [PATCH] Fix --- runtime/examples/text_lm/local/mmseg.py | 1 - runtime/patch/openfst/src/include/fst/flags.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/examples/text_lm/local/mmseg.py b/runtime/examples/text_lm/local/mmseg.py index d812db155..4d72afd39 100755 --- a/runtime/examples/text_lm/local/mmseg.py +++ b/runtime/examples/text_lm/local/mmseg.py @@ -253,7 +253,6 @@ class Analysis: # print(word3.length, word3.text) if word3.length == -1: chunk = Chunk(word1, word2) - # print("True") else: chunk = Chunk(word1, word2, word3) chunks.append(chunk) diff --git a/runtime/patch/openfst/src/include/fst/flags.h b/runtime/patch/openfst/src/include/fst/flags.h index 79a81a848..54dd30cc2 100644 --- a/runtime/patch/openfst/src/include/fst/flags.h +++ b/runtime/patch/openfst/src/include/fst/flags.h @@ -181,8 +181,8 @@ template class FlagRegisterer { public: FlagRegisterer(const string &name, const FlagDescription &desc) { - auto register = FlagRegister::GetRegister(); - register->SetDescription(name, desc); + auto r = FlagRegister::GetRegister(); + r->SetDescription(name, desc); } private: