diff options
author | graehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-02 07:57:23 +0000 |
---|---|---|
committer | graehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-02 07:57:23 +0000 |
commit | 1fc4b6a45c18b52ab2c27eb9a825ad14f31d803b (patch) | |
tree | 33eddab63ea60d0b252dc842ebd0c2a8408af40d /decoder/hg_intersect.cc | |
parent | 526efd6515eb9efdcc1fe756c3cec4981ca10186 (diff) |
fake tdict names for non-ids, push viterbi cost to root in hg, store as feature. type erased fsa feature via virtual interface. made lexical_cast assume C locale for speed.
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@465 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/hg_intersect.cc')
-rw-r--r-- | decoder/hg_intersect.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/hg_intersect.cc b/decoder/hg_intersect.cc index 02ff752e..a3a2cbd9 100644 --- a/decoder/hg_intersect.cc +++ b/decoder/hg_intersect.cc @@ -2,7 +2,7 @@ #include <vector> #include <tr1/unordered_map> -#include <boost/lexical_cast.hpp> +#include "fast_lexical_cast.hpp" #include <boost/functional/hash.hpp> #include "tdict.h" @@ -143,7 +143,7 @@ bool HG::Intersect(const Lattice& target, Hypergraph* hg) { rule->parent_rule_ = edge.rule_; rule->ComputeArity(); //cerr << "ADD: " << rule->AsString() << endl; - + g->AddRule(rule); } g->SetMaxSpan(target.size() + 1); |