Committed by
GitHub
update java for hotword jar (#1444)
--------- Co-authored-by: root <1552138571@qq.com>
正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -160,12 +160,14 @@ public class OfflineModelConfig { | @@ -160,12 +160,14 @@ public class OfflineModelConfig { | ||
| 160 | return this; | 160 | return this; |
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | - public void setModelingUnit(String modelingUnit) { | 163 | + public Builder setModelingUnit(String modelingUnit) { |
| 164 | this.modelingUnit = modelingUnit; | 164 | this.modelingUnit = modelingUnit; |
| 165 | + return this; | ||
| 165 | } | 166 | } |
| 166 | 167 | ||
| 167 | - public void setBpeVocab(String bpeVocab) { | 168 | + public Builder setBpeVocab(String bpeVocab) { |
| 168 | this.bpeVocab = bpeVocab; | 169 | this.bpeVocab = bpeVocab; |
| 170 | + return this; | ||
| 169 | } | 171 | } |
| 170 | } | 172 | } |
| 171 | } | 173 | } |
-
请 注册 或 登录 后发表评论