Added input checking for command keyword.

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/branches/mira-mtm5@3436 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
ales-t 2010-09-14 14:21:31 +00:00
parent 6ee89748f6
commit a52e47259b
2 changed files with 8 additions and 5 deletions

View File

@ -52,6 +52,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "WordLattice.h"
#include "TreeInput.h"
#include "TranslationAnalysis.h"
#include "OnlineCommand.h"
#include "mbr.h"
#include "../../moses-chart/src/ChartManager.h"
#include "../../moses-chart/src/ChartHypothesis.h"
@ -138,12 +139,12 @@ int main(int argc, char* argv[])
while((line = ioWrapper->GetInput()) != "")
{
line += "\n";
//if ()
{
}
OnlineCommand oc;
ReadInput(*ioWrapper,staticData.GetInputType(),source, line);
if (oc.Parse(line)){//an online command
oc.Execute();
oc.Clean();
}
StaticData &ss = StaticData::InstanceNonConst();
//ss.ChangeWeights( "lm", 8989);

View File

@ -57,6 +57,7 @@ libmoses_la_HEADERS = \
LexicalReorderingTable.h \
Manager.h \
ObjectPool.h \
OnlineCommand.h \
PCNTools.h \
PDTAimp.h \
Parameter.h \
@ -183,6 +184,7 @@ libmoses_la_SOURCES = \
Manager.cpp \
NGramCollection.cpp \
NGramNode.cpp \
OnlineCommand.cpp \
PCNTools.cpp \
Parameter.cpp \
PartialTranslOptColl.cpp \