diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-16 22:08:37 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-16 22:08:37 +0000 |
commit | d484433d9ad566076b7d078c77443ce7841f4f3e (patch) | |
tree | 6d6eb905ed25589821b7bec12a38b1fb211c37b1 /decoder/maxtrans_blunsom.cc | |
parent | 0a11da06831d5a062b6703f1aa1431cc33689e23 (diff) |
smallvector template
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@302 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/maxtrans_blunsom.cc')
-rw-r--r-- | decoder/maxtrans_blunsom.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/maxtrans_blunsom.cc b/decoder/maxtrans_blunsom.cc index 34e175db..6efab454 100644 --- a/decoder/maxtrans_blunsom.cc +++ b/decoder/maxtrans_blunsom.cc @@ -19,7 +19,7 @@ using namespace std::tr1; namespace Hack { struct Candidate; -typedef SmallVector JVector; +typedef SmallVectorInt JVector; typedef vector<Candidate*> CandidateHeap; typedef vector<Candidate*> CandidateList; @@ -188,7 +188,7 @@ public: new_edge->edge_prob_ = item->out_edge_.edge_prob_; 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_); |