diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-13 08:20:47 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-13 08:20:47 +0000 |
commit | 5fd3e970bf9ef0ce243a9c66c791c6b420b2a86a (patch) | |
tree | 33a7995d86e3ba10631c2aa68a3b53dfd9390248 /decoder/viterbi.h | |
parent | e60301e1be0a0d5bb44f1efd40ff43316121d4d3 (diff) |
(NEEDS TESTING) cfg index rules->nts, sort by prob, remove duplicates keeping highest prob, topo sort (and after binarize topo sort). beginning to apply_fsa_models (PrefixTrieNode)
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@539 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/viterbi.h')
-rw-r--r-- | decoder/viterbi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/viterbi.h b/decoder/viterbi.h index ea2bc6c2..e78cd157 100644 --- a/decoder/viterbi.h +++ b/decoder/viterbi.h @@ -16,7 +16,7 @@ std::string viterbi_stats(Hypergraph const& hg, std::string const& name="forest" // WeightFunction must implement: // typedef prob_t Weight; // Weight operator()(Hypergraph::Edge const& e) const; -template<typename Traversal,typename WeightFunction> +template<class Traversal,class WeightFunction> typename WeightFunction::Weight Viterbi(const Hypergraph& hg, typename Traversal::Result* result, const Traversal& traverse, |