summaryrefslogtreecommitdiff
path: root/decoder/oracle_bleu.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-16 01:56:43 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-16 01:56:43 +0000
commit66a93fb13f5dcb5440f65f79e028b7d86cd234aa (patch)
tree61ed1c25be9e2205a00242b5dd0b9bf2c217d80c /decoder/oracle_bleu.h
parent7fc9c84573642e7993457ed73b37747a3eaba8bc (diff)
oracle is_null
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@277 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/oracle_bleu.h')
-rwxr-xr-xdecoder/oracle_bleu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/oracle_bleu.h b/decoder/oracle_bleu.h
index 550f438f..6708b02e 100755
--- a/decoder/oracle_bleu.h
+++ b/decoder/oracle_bleu.h
@@ -38,7 +38,7 @@ struct Translation {
out<<pre<<"features: "<<features<<std::endl;
}
bool is_null() {
- return features.size()==0 /* && sentence.size()==0 */;
+ return features.empty() /* && sentence.empty() */;
}
};