diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-05 18:53:00 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-05 18:53:00 +0000 |
commit | 4955a3d76a535fad2a3f9e504f2eeeefc0a266fd (patch) | |
tree | 66fa07cf018d36e0a8745568488a4025c8961684 /decoder/apply_models.cc | |
parent | 36778292e0e98d9b5307a38104f1e99aad7c3aa4 (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/apply_models.cc')
-rw-r--r-- | decoder/apply_models.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/decoder/apply_models.cc b/decoder/apply_models.cc index 2908005f..0b667de0 100644 --- a/decoder/apply_models.cc +++ b/decoder/apply_models.cc @@ -1,3 +1,7 @@ +//TODO: (for many nonterminals, or multi-rescoring pass) either global +//best-first, or group by (NT,span) - use prev forest outside as a (admissable, +//if models are a subset and weights are same) heuristic + #include "apply_models.h" #include <vector> @@ -207,7 +211,7 @@ public: new_edge->prev_j_ = item->out_edge_.prev_j_; Candidate*& o_item = (*s2n)[item->state_]; if (!o_item) o_item = item; - + int& node_id = o_item->node_index_; if (node_id < 0) { Hypergraph::Node* new_node = out.AddNode(in.nodes_[item->in_edge_->head_node_].cat_); |