We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72742d5 commit 48ab90aCopy full SHA for 48ab90a
sherpa-onnx/java-api/src/com/k2fsa/sherpa/onnx/OnlineModelConfig.java
@@ -140,12 +140,14 @@ public Builder setModelType(String modelType) {
140
return this;
141
}
142
143
- public void setModelingUnit(String modelingUnit) {
+ public Builder setModelingUnit(String modelingUnit) {
144
this.modelingUnit = modelingUnit;
145
+ return this;
146
147
- public void setBpeVocab(String bpeVocab) {
148
+ public Builder setBpeVocab(String bpeVocab) {
149
this.bpeVocab = bpeVocab;
150
151
152
153
0 commit comments