mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +03:00
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:
parent
6ee89748f6
commit
a52e47259b
@ -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);
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user