Skip to content

Commit

Permalink
eval with alphanumeric and case sensitive setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Baek JeongHun committed Feb 25, 2020
1 parent 5b132b9 commit e2197e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def validation(model, criterion, evaluation_loader, converter, opt):
pred = pred[:pred_EOS] # prune after "end of sentence" token ([s])
pred_max_prob = pred_max_prob[:pred_EOS]

# To evaluate the model with 'alphanumeric and case insensitve setting'
# To evaluate 'case sensitive model' with alphanumeric and case insensitve setting.
if opt.sensitive and opt.data_filtering_off:
pred = pred.lower()
gt = gt.lower()
Expand Down

0 comments on commit e2197e8

Please sign in to comment.