From 6801d65c58c8d47e7f9424fe6c842fc046b84d62 Mon Sep 17 00:00:00 2001 From: Anoop Kunchukuttan Date: Mon, 5 Oct 2020 08:25:29 +0530 Subject: some code for parsing input --- moses2/TranslationModel/MSPT/MSPT.cpp | 5 +++-- 1 file 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 +#include #include #include "MSPT.h" #include "../../PhraseBased/PhraseImpl.h" @@ -66,7 +67,7 @@ MSPT::~MSPT() // vector 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(input); cerr << "Casting done." << endl; - // cerr << "PhraseTableString member: " << inputObj.getPhraseTableString() << endl; + cerr << "PhraseTableString member: " << inputObj.getPhraseTableString() << endl; } -- cgit v1.2.3