LoadModel loads the model from model CONF file.
(path string)
| 161 | |
| 162 | // LoadModel loads the model from model CONF file. |
| 163 | func (model Model) LoadModel(path string) error { |
| 164 | cfg, err := config.NewConfig(path) |
| 165 | if err != nil { |
| 166 | return err |
| 167 | } |
| 168 | |
| 169 | return model.loadModelFromConfig(cfg) |
| 170 | } |
| 171 | |
| 172 | // LoadModelFromText loads the model from the text. |
| 173 | func (model Model) LoadModelFromText(text string) error { |
no test coverage detected