summaryrefslogtreecommitdiff
path: root/decoder/cdec.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-07-26 15:39:26 +0100
committerChris Dyer <cdyer@cs.cmu.edu>2011-07-26 15:39:26 +0100
commit02c47c31050505eacc2aa9a17e77214a7b456171 (patch)
treead39a2b2c328c6e4a5875e82f97d7de0a4cfa8b4 /decoder/cdec.cc
parentb89c1f03c89c6c30b88099e4f3e0c1753d338ea7 (diff)
parentd2ca798de168f2009d3190d31e4b3f4b92985962 (diff)
Merge remote branch 'agesmundo/master'
Diffstat (limited to 'decoder/cdec.cc')
-rw-r--r--decoder/cdec.cc8
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) {