From bcaa91ed36a76b2735e9ea308228d9c7bd93a584 Mon Sep 17 00:00:00 2001 From: YeyuchenBa <117083299+YeyuchenBa@users.noreply.github.com> Date: Fri, 18 Oct 2024 18:07:51 +0800 Subject: [PATCH] update java for hotword jar (#1444) --------- Co-authored-by: root <1552138571@qq.com> --- .../src/com/k2fsa/sherpa/onnx/OfflineModelConfig.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sherpa-onnx/java-api/src/com/k2fsa/sherpa/onnx/OfflineModelConfig.java b/sherpa-onnx/java-api/src/com/k2fsa/sherpa/onnx/OfflineModelConfig.java index 0576b0dbc..9e23a3a74 100644 --- a/sherpa-onnx/java-api/src/com/k2fsa/sherpa/onnx/OfflineModelConfig.java +++ b/sherpa-onnx/java-api/src/com/k2fsa/sherpa/onnx/OfflineModelConfig.java @@ -160,12 +160,14 @@ public Builder setModelType(String modelType) { return this; } - public void setModelingUnit(String modelingUnit) { + public Builder setModelingUnit(String modelingUnit) { this.modelingUnit = modelingUnit; + return this; } - public void setBpeVocab(String bpeVocab) { + public Builder setBpeVocab(String bpeVocab) { this.bpeVocab = bpeVocab; + return this; } } } \ No newline at end of file