Skip to content

Commit 48ab90a

Browse files
authored
Fix setting OnlineModelConfig in Java API (#2147)
1 parent 72742d5 commit 48ab90a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sherpa-onnx/java-api/src/com/k2fsa/sherpa/onnx/OnlineModelConfig.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,14 @@ public Builder setModelType(String modelType) {
140140
return this;
141141
}
142142

143-
public void setModelingUnit(String modelingUnit) {
143+
public Builder setModelingUnit(String modelingUnit) {
144144
this.modelingUnit = modelingUnit;
145+
return this;
145146
}
146147

147-
public void setBpeVocab(String bpeVocab) {
148+
public Builder setBpeVocab(String bpeVocab) {
148149
this.bpeVocab = bpeVocab;
150+
return this;
149151
}
150152
}
151153
}

0 commit comments

Comments
 (0)