From 5874ba7d2a9602d9c2e809ceea1e69c0947fc88f Mon Sep 17 00:00:00 2001 From: HalFTeen <945886219@qq.com> Date: Tue, 29 Aug 2023 11:59:57 +0800 Subject: [PATCH] delete note according to pkufool --- sherpa-ncnn/csrc/recognizer.cc | 6 ------ sherpa-ncnn/csrc/recognizer.h | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/sherpa-ncnn/csrc/recognizer.cc b/sherpa-ncnn/csrc/recognizer.cc index 435c7e46..6d226c00 100644 --- a/sherpa-ncnn/csrc/recognizer.cc +++ b/sherpa-ncnn/csrc/recognizer.cc @@ -128,7 +128,6 @@ class Recognizer::Impl { return stream; } - // std::unique_ptr CreateStream(const std::vector>& contexts) const { std::unique_ptr CreateStream(const char* contexts) const { std::vector> hotwords; std::vector tmp; @@ -194,7 +193,6 @@ class Recognizer::Impl { ncnn::Mat encoder_out; std::tie(encoder_out, states) = model_->RunEncoder(features, states); -// decoder_->Decode(encoder_out, &s->GetResult()); if (has_context_graph) { decoder_->Decode(encoder_out, s, &s->GetResult()); } else { @@ -273,10 +271,6 @@ std::unique_ptr Recognizer::CreateStream() const { return impl_->CreateStream(); } -//std::unique_ptr Recognizer::CreateStream( -// const std::vector> &context_list) const { -// return impl_->CreateStream(context_list); -//} std::unique_ptr Recognizer::CreateStream( const char* context_list) const { return impl_->CreateStream(context_list); diff --git a/sherpa-ncnn/csrc/recognizer.h b/sherpa-ncnn/csrc/recognizer.h index 4976b898..6374e232 100644 --- a/sherpa-ncnn/csrc/recognizer.h +++ b/sherpa-ncnn/csrc/recognizer.h @@ -90,8 +90,7 @@ class Recognizer { // Create a stream with context phrases std::unique_ptr CreateStream(const char* context_list) const; - //std::unique_ptr CreateStream( - // const std::vector> &context_list) const; + /** * Return true if the given stream has enough frames for decoding. * Return false otherwise