Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
endyul committed Aug 10, 2015
1 parent 5693a9b commit 7a735a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ner/ner_frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void NamedEntityRecognizerFrontend::train(void) {
updated_features.add(ctx.predict_features, -1.);

learn(train_opt.algorithm, updated_features,
iter*train_dat.size()+1, inst->num_errors(), model);
iter*train_dat.size() + i + 1, inst->num_errors(), model);

if (train_opt.rare_feature_threshold > 0) {
increase_groupwise_update_counts(model, updated_features, update_counts);
Expand Down
2 changes: 1 addition & 1 deletion src/postagger/postagger_frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void PostaggerFrontend::train(void) {
updated_features.add(ctx.predict_features, -1.);

learn(train_opt.algorithm, updated_features,
iter*train_dat.size() + 1, inst->num_errors(), model);
iter*train_dat.size() + i + 1, inst->num_errors(), model);


if (train_opt.rare_feature_threshold > 0) {
Expand Down

0 comments on commit 7a735a1

Please sign in to comment.