summaryrefslogtreecommitdiff
path: root/decoder/bottom_up_parser.cc
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-05 18:53:00 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-05 18:53:00 +0000
commitec661c521db984a8f6394c3f456e592a26bc6f7e (patch)
treee50a2d234e7b37b982c554af86abd9cc4556f506 /decoder/bottom_up_parser.cc
parent99561934f10e6f3eb47df0237c37a3af685cdf1f (diff)
comment unused var names, todo
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@133 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/bottom_up_parser.cc')
-rw-r--r--decoder/bottom_up_parser.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/decoder/bottom_up_parser.cc b/decoder/bottom_up_parser.cc
index dd54a606..94f209b5 100644
--- a/decoder/bottom_up_parser.cc
+++ b/decoder/bottom_up_parser.cc
@@ -1,3 +1,5 @@
+//TODO: when using many nonterminals, group passive edges for a span (treat all as a single X for the active items).
+
#include "bottom_up_parser.h"
#include <iostream>
@@ -17,8 +19,8 @@ struct ParserStats {
}
int active_items;
int passive_items;
- void NotifyActive(int i, int j) { ++active_items; }
- void NotifyPassive(int i, int j) { ++passive_items; }
+ void NotifyActive(int , int ) { ++active_items; }
+ void NotifyPassive(int , int ) { ++passive_items; }
};
ParserStats stats;
@@ -148,7 +150,7 @@ class ActiveChart {
private:
const Hypergraph* hg_;
Array2D<vector<ActiveItem> > act_chart_;
- const PassiveChart& psv_chart_;
+ const PassiveChart& psv_chart_;
};
PassiveChart::PassiveChart(const string& goal,