Support Agglomerative clustering. (#1384)

We use the open-source implementation from
https://github.com/cdalitz/hclust-cpp
This commit is contained in:
Fangjun Kuang
2024-09-29 23:44:29 +08:00
committed by GitHub
parent bc08160820
commit 70568c2df7
12 changed files with 343 additions and 13 deletions

View File

@@ -8,16 +8,16 @@
namespace sherpa_onnx {
struct OnlineCNNBiLSTMModelMetaData {
int32_t comma_id;
int32_t period_id;
int32_t quest_id;
int32_t comma_id = -1;
int32_t period_id = -1;
int32_t quest_id = -1;
int32_t upper_id;
int32_t cap_id;
int32_t mix_case_id;
int32_t upper_id = -1;
int32_t cap_id = -1;
int32_t mix_case_id = -1;
int32_t num_cases;
int32_t num_punctuations;
int32_t num_cases = -1;
int32_t num_punctuations = -1;
};
} // namespace sherpa_onnx