Committed by
GitHub
Fix setting OnlineModelConfig in Java API (#2147)
正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -140,12 +140,14 @@ public class OnlineModelConfig { | @@ -140,12 +140,14 @@ public class OnlineModelConfig { | ||
| 140 | return this; | 140 | return this; |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | - public void setModelingUnit(String modelingUnit) { | 143 | + public Builder setModelingUnit(String modelingUnit) { |
| 144 | this.modelingUnit = modelingUnit; | 144 | this.modelingUnit = modelingUnit; |
| 145 | + return this; | ||
| 145 | } | 146 | } |
| 146 | 147 | ||
| 147 | - public void setBpeVocab(String bpeVocab) { | 148 | + public Builder setBpeVocab(String bpeVocab) { |
| 148 | this.bpeVocab = bpeVocab; | 149 | this.bpeVocab = bpeVocab; |
| 150 | + return this; | ||
| 149 | } | 151 | } |
| 150 | } | 152 | } |
| 151 | } | 153 | } |
-
请 注册 或 登录 后发表评论