diff options
author | graehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-02 08:19:59 +0000 |
---|---|---|
committer | graehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-02 08:19:59 +0000 |
commit | c683b53f3553ed66c0261f653115a691d1bdb714 (patch) | |
tree | 4d9e2387bde9ad4cb0187865f0fe90d1374ae883 | |
parent | 22bd86752547180089cd0c8c9daf0ed9dd32f462 (diff) |
disable undefined token to string
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@467 ec762483-ff6d-05da-a07a-a48fb63a330f
-rw-r--r-- | decoder/inside_outside.h | 3 | ||||
-rw-r--r-- | decoder/tdict.cc | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/decoder/inside_outside.h b/decoder/inside_outside.h index 48e31bb3..739b46fd 100644 --- a/decoder/inside_outside.h +++ b/decoder/inside_outside.h @@ -124,9 +124,6 @@ struct InsideOutsides { KType compute(Hypergraph const& hg,KWeightFunction const& kwf=KWeightFunction()) { return compute(hg,Outside1<KType>(),kwf); } - template <class KWeightFunction> - KType compute_inside(Hypergraph const& hg,KWeightFunction const& kwf=KWeightFunction()) { - } template <class KWeightFunction,class O1> KType compute(Hypergraph const& hg,O1 outside1,KWeightFunction const& kwf=KWeightFunction()) { diff --git a/decoder/tdict.cc b/decoder/tdict.cc index f0588cfc..1f68feae 100644 --- a/decoder/tdict.cc +++ b/decoder/tdict.cc @@ -1,4 +1,4 @@ -#define TD_ALLOW_UNDEFINED_WORDIDS 1 +#define TD_ALLOW_UNDEFINED_WORDIDS 0 // if 1, word ids that are >= end() will give a numeric token name (single per-thread shared buffer), which of course won't be Convert-able back to the id, because it's not added to the dict. This is a convenience for logging fake token indices. Any tokens actually added to the dict may cause end() to overlap the range of fake ids you were using - that's up to you to prevent. |