summaryrefslogtreecommitdiff
path: root/decoder/ttables.cc
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-09-29 21:06:33 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-09-29 21:06:33 +0000
commitadfa44a02ea08cde8b1490258aefbd766617f447 (patch)
tree380c061340bb468b8909d94e79f5e70e904714fb /decoder/ttables.cc
parentf412aaab3d10fb82b20a2190f2cb1424959c599a (diff)
move model 1 code
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@665 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/ttables.cc')
-rw-r--r--decoder/ttables.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/decoder/ttables.cc b/decoder/ttables.cc
deleted file mode 100644
index 2ea960f0..00000000
--- a/decoder/ttables.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "ttables.h"
-
-#include <cassert>
-
-#include "dict.h"
-
-using namespace std;
-using namespace std::tr1;
-
-void TTable::DeserializeProbsFromText(std::istream* in) {
- int c = 0;
- while(*in) {
- string e;
- string f;
- double p;
- (*in) >> e >> f >> p;
- if (e.empty()) break;
- ++c;
- ttable[TD::Convert(e)][TD::Convert(f)] = prob_t(p);
- }
- cerr << "Loaded " << c << " translation parameters.\n";
-}
-
-void TTable::SerializeHelper(string* out, const Word2Word2Double& o) {
- assert(!"not implemented");
-}
-
-void TTable::DeserializeHelper(const string& in, Word2Word2Double* o) {
- assert(!"not implemented");
-}
-