Skip to content

Commit

Permalink
[fix] badly drafted warning information, add example configure item
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneplus committed Nov 11, 2014
1 parent 99abffb commit a4ff124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/segmentor/customized_segmentor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ CustomizedSegmentor::train_setup() {
}

if (!baseline_model->full) {
ERROR_LOG("Baseline model must be full");
ERROR_LOG("Baseline model should be fully dumped version.");
WARNING_LOG("Model trained by LTP version lower than 3.2.0 or be");
WARNING_LOG("- configed by 'enable-incremental-training = 1' is not fully dumped.");
WARNING_LOG("Please retrain your model with LTP above 3.2.0 and ");
WARNING_LOG("- 'enable-incremental-training = 1' ");
return false;
}

Expand Down
1 change: 1 addition & 0 deletions tools/train/conf/cws/customized-cws.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ model-name = build/cws/example-seg-customized
baseline-model-name = build/cws/example-seg.0.model
max-iter = 5
rare-feature-threshold = 0
enable-incremental-training = 1

0 comments on commit a4ff124

Please sign in to comment.