diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-07-26 15:39:26 +0100 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-07-26 15:39:26 +0100 |
commit | 004d7447341b938efdec9223f899cf67f6b0dd86 (patch) | |
tree | 3b6da42ae9f5158b7c7e366aa1051e3277d937e6 /decoder/cdec.cc | |
parent | c3828b0a2deb42de5c7378e93f93f5e69efb304c (diff) | |
parent | f80150140b5273fd1eb0dfb34bdd789c4cbd35e6 (diff) |
Merge remote branch 'agesmundo/master'
Diffstat (limited to 'decoder/cdec.cc')
-rw-r--r-- | decoder/cdec.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/decoder/cdec.cc b/decoder/cdec.cc index 5c40f56e..c671af57 100644 --- a/decoder/cdec.cc +++ b/decoder/cdec.cc @@ -19,11 +19,19 @@ int main(int argc, char** argv) { assert(*in); string buf; +#ifdef CP_TIME + clock_t time_cp(0);//, end_cp; +#endif while(*in) { getline(*in, buf); if (buf.empty()) continue; decoder.Decode(buf); } +#ifdef CP_TIME + cerr << "Time required for Cube Pruning execution: " + << CpTime::Get() + << " seconds." << "\n\n"; +#endif if (show_feature_dictionary) { int num = FD::NumFeats(); for (int i = 1; i < num; ++i) { |