diff options
author | Patrick Simianer <p@simianer.de> | 2011-09-09 00:41:17 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-09-23 19:13:58 +0200 |
commit | 2b3b084ba45bf4e2e2dc5152afed268b616ee308 (patch) | |
tree | f200ce047f28b3298bf0e7aa2ead4bce9bd223c1 /decoder | |
parent | 83eb31deb8a2056c098715c8cb29f2498fc213c3 (diff) |
added svm, ksampler
Diffstat (limited to 'decoder')
-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 ac0b9a11..daee3d7a 100644 --- a/decoder/viterbi.h +++ b/decoder/viterbi.h @@ -25,7 +25,7 @@ typename WeightFunction::Weight Viterbi(const Hypergraph& hg, typedef typename WeightFunction::Weight WeightType; const int num_nodes = hg.nodes_.size(); std::vector<T> vit_result(num_nodes); - std::vector<WeightType> vit_weight(num_nodes, WeightType::Zero()); + std::vector<WeightType> vit_weight(num_nodes, WeightType()); for (int i = 0; i < num_nodes; ++i) { const Hypergraph::Node& cur_node = hg.nodes_[i]; |