diff options
author | Patrick Simianer <p@simianer.de> | 2015-06-24 18:51:21 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-06-24 18:51:21 +0200 |
commit | 723cbf8d543ba8be2880b497518c87fc1cbf3573 (patch) | |
tree | 6e1e4591371f879995f042ff669b93dd7a37106b /training/dtrain/score.h | |
parent | 47ed3381713f0e0e375dd6087bbd507ee22bf7cc (diff) |
dtrain_net_interace: cleanup
Diffstat (limited to 'training/dtrain/score.h')
-rw-r--r-- | training/dtrain/score.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/training/dtrain/score.h b/training/dtrain/score.h index d909dbf3..e6e60acb 100644 --- a/training/dtrain/score.h +++ b/training/dtrain/score.h @@ -1,5 +1,5 @@ -#ifndef _DTRAIN_SCORE_NET_INTERFACE_H_ -#define _DTRAIN_SCORE_NET_INTERFACE_H_ +#ifndef _DTRAIN_SCORE_H_ +#define _DTRAIN_SCORE_H_ #include "dtrain.h" @@ -153,7 +153,7 @@ struct PerSentenceBleuScorer size_t best = numeric_limits<size_t>::max(); for (auto l: ref_ls) { size_t d = abs(hl-l); - if (d < best) { + if (d < best) { best_idx = i; best = d; } |