git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/branches/mira-mtm5@3437 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
hieuhoang1972 2010-09-14 14:43:42 +00:00
parent a52e47259b
commit b0c484fc3a

View File

@ -138,17 +138,17 @@ int main(int argc, char* argv[])
string line;
while((line = ioWrapper->GetInput()) != "")
{
line += "\n";
OnlineCommand oc;
ReadInput(*ioWrapper,staticData.GetInputType(),source, line);
OnlineCommand oc;
if (oc.Parse(line)){//an online command
oc.Execute();
oc.Clean();
}
continue;
}
else {
line += "\n";
ReadInput(*ioWrapper,staticData.GetInputType(),source, line);
}
StaticData &ss = StaticData::InstanceNonConst();
//ss.ChangeWeights( "lm", 8989);
// note: source is only valid within this while loop!
IFVERBOSE(1)
ResetUserTime();