summaryrefslogtreecommitdiff
path: root/src/ttables.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ttables.cc')
-rw-r--r--src/ttables.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/ttables.cc b/src/ttables.cc
deleted file mode 100644
index 2ea960f0..00000000
--- a/src/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");
-}
-