mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +03:00
mira
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/branches/mira-mtm5@3437 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
a52e47259b
commit
b0c484fc3a
@ -138,17 +138,17 @@ int main(int argc, char* argv[])
|
|||||||
string line;
|
string line;
|
||||||
while((line = ioWrapper->GetInput()) != "")
|
while((line = ioWrapper->GetInput()) != "")
|
||||||
{
|
{
|
||||||
line += "\n";
|
OnlineCommand oc;
|
||||||
OnlineCommand oc;
|
|
||||||
ReadInput(*ioWrapper,staticData.GetInputType(),source, line);
|
|
||||||
if (oc.Parse(line)){//an online command
|
if (oc.Parse(line)){//an online command
|
||||||
oc.Execute();
|
oc.Execute();
|
||||||
oc.Clean();
|
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)
|
IFVERBOSE(1)
|
||||||
ResetUserTime();
|
ResetUserTime();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user