From 9cbde412e23dffd1a5e6628b47add5d5460cf016 Mon Sep 17 00:00:00 2001 From: nicolabertoldi Date: Fri, 12 Sep 2008 18:19:41 +0000 Subject: support for creating binary Phrase Tables including word-to-word alignments git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1887 1f5c12ca-751b-0410-a591-d2e778427230 --- misc/processPhraseTable.cpp | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/misc/processPhraseTable.cpp b/misc/processPhraseTable.cpp index db3e8a34e..47340df8a 100644 --- a/misc/processPhraseTable.cpp +++ b/misc/processPhraseTable.cpp @@ -14,6 +14,7 @@ #include "InputFileStream.h" #include "Timer.h" +using namespace std; Timer timer; template @@ -36,6 +37,7 @@ inline bool existsFile(const std::string& filename) { int main(int argc,char **argv) { std::string fto;size_t noScoreComponent=5;int cn=0; + bool aligninfo=false; std::vector > > ftts; int verb=0; for(int i=1;i pdicts; @@ -103,6 +120,7 @@ int main(int argc,char **argv) { } std::cerr<<"reading bin ttable\n"; pdt.Read(prefix); + } std::cerr<<"processing stdin\n"; -- cgit v1.2.3