Handle NaN embeddings in speaker diarization. (#1461)

See also https://github.com/thewh1teagle/sherpa-rs/issues/33
This commit is contained in:
Fangjun Kuang
2024-10-24 14:03:09 +08:00
committed by GitHub
parent b3e05f6dc4
commit a5295aad10
6 changed files with 48 additions and 7 deletions

View File

@@ -19,7 +19,7 @@
#include "sherpa-onnx/c-api/cxx-api.h"
int32_t main() {
using namespace sherpa_onnx::cxx;
using namespace sherpa_onnx::cxx; // NOLINT
OfflineRecognizerConfig config;
config.model_config.sense_voice.model =

View File

@@ -20,7 +20,7 @@
#include "sherpa-onnx/c-api/cxx-api.h"
int32_t main() {
using namespace sherpa_onnx::cxx;
using namespace sherpa_onnx::cxx; // NOLINT
OnlineRecognizerConfig config;
// please see

View File

@@ -19,7 +19,7 @@
#include "sherpa-onnx/c-api/cxx-api.h"
int32_t main() {
using namespace sherpa_onnx::cxx;
using namespace sherpa_onnx::cxx; // NOLINT
OfflineRecognizerConfig config;
config.model_config.whisper.encoder =