summaryrefslogtreecommitdiff
path: root/src/viterbi.cc
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2009-12-14 20:35:11 -0500
committerChris Dyer <redpony@gmail.com>2009-12-14 20:35:11 -0500
commit851e389dffdd6996ea32d70defb8906de80b9edc (patch)
tree8c68ee77205badc056b8ab5b332e67e3e98017df /src/viterbi.cc
parentdc6930c00b4b276883280cff1ed6dcd9ddef03c7 (diff)
few small fixes of alignment tools, add new orthographic similarity feature for word aligner, final naming of directories, libraries in cdec
Diffstat (limited to 'src/viterbi.cc')
-rw-r--r--src/viterbi.cc39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/viterbi.cc b/src/viterbi.cc
deleted file mode 100644
index 82b2ce6d..00000000
--- a/src/viterbi.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-#include "viterbi.h"
-
-#include <vector>
-#include "hg.h"
-
-using namespace std;
-
-string ViterbiETree(const Hypergraph& hg) {
- vector<WordID> tmp;
- const prob_t p = Viterbi<vector<WordID>, ETreeTraversal, prob_t, EdgeProb>(hg, &tmp);
- return TD::GetString(tmp);
-}
-
-string ViterbiFTree(const Hypergraph& hg) {
- vector<WordID> tmp;
- const prob_t p = Viterbi<vector<WordID>, FTreeTraversal, prob_t, EdgeProb>(hg, &tmp);
- return TD::GetString(tmp);
-}
-
-prob_t ViterbiESentence(const Hypergraph& hg, vector<WordID>* result) {
- return Viterbi<vector<WordID>, ESentenceTraversal, prob_t, EdgeProb>(hg, result);
-}
-
-prob_t ViterbiFSentence(const Hypergraph& hg, vector<WordID>* result) {
- return Viterbi<vector<WordID>, FSentenceTraversal, prob_t, EdgeProb>(hg, result);
-}
-
-int ViterbiELength(const Hypergraph& hg) {
- int len = -1;
- Viterbi<int, ELengthTraversal, prob_t, EdgeProb>(hg, &len);
- return len;
-}
-
-int ViterbiPathLength(const Hypergraph& hg) {
- int len = -1;
- Viterbi<int, PathLengthTraversal, prob_t, EdgeProb>(hg, &len);
- return len;
-}
-