diff options
author | Anoop Kunchukuttan <anoop.kunchukuttan@gmail.com> | 2020-10-05 05:55:29 +0300 |
---|---|---|
committer | Anoop Kunchukuttan <anoop.kunchukuttan@gmail.com> | 2020-10-05 05:55:29 +0300 |
commit | 6801d65c58c8d47e7f9424fe6c842fc046b84d62 (patch) | |
tree | 7a1ecfa78133aa8218f327f7ae5e5a9704367ded | |
parent | 1990ac88d4538b513cae0a2486152f283b503577 (diff) |
some code for parsing input
-rw-r--r-- | moses2/TranslationModel/MSPT/MSPT.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/moses2/TranslationModel/MSPT/MSPT.cpp b/moses2/TranslationModel/MSPT/MSPT.cpp index 17dea92a0..529efbb69 100644 --- a/moses2/TranslationModel/MSPT/MSPT.cpp +++ b/moses2/TranslationModel/MSPT/MSPT.cpp @@ -6,6 +6,7 @@ */ #include <cassert> +#include <sstream> #include <boost/foreach.hpp> #include "MSPT.h" #include "../../PhraseBased/PhraseImpl.h" @@ -66,7 +67,7 @@ MSPT::~MSPT() // vector<string> toks; // size_t lineNum = 0; -// InputFileStream strme(m_path); +// istringstream strme(phraseTableString); // string line; // while (getline(strme, line)) { // if (++lineNum % 1000000 == 0) { @@ -159,7 +160,7 @@ void MSPT::InitializeForInput(const InputType &input) // downcast to SentenceWithCandidates const SentenceWithCandidates& inputObj = dynamic_cast<const SentenceWithCandidates&>(input); cerr << "Casting done." << endl; - // cerr << "PhraseTableString member: " << inputObj.getPhraseTableString() << endl; + cerr << "PhraseTableString member: " << inputObj.getPhraseTableString() << endl; } |