Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2013-09-24 01:20:58 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-09-24 01:20:58 +0400
commit0237c8e3fe467eb27a55bf8b3e221f21977be20b (patch)
tree754f489a5d02bd8e1f7eca8574b9aef2843ddbc2 /moses/WordLattice.cpp
parente6d652aea5ca6c38176e87b8183a7bc4a0ade434 (diff)
check to make sure there is an InputFeature when decoding lattice or confusion network
Diffstat (limited to 'moses/WordLattice.cpp')
-rw-r--r--moses/WordLattice.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/moses/WordLattice.cpp b/moses/WordLattice.cpp
index c457b4e2b..95f4294ce 100644
--- a/moses/WordLattice.cpp
+++ b/moses/WordLattice.cpp
@@ -5,10 +5,14 @@
#include "Util.h"
#include "FloydWarshall.h"
#include "moses/FF/InputFeature.h"
+#include "util/check.hh"
namespace Moses
{
-WordLattice::WordLattice() {}
+WordLattice::WordLattice()
+{
+ CHECK(StaticData::Instance().GetInputFeature());
+}
size_t WordLattice::GetColumnIncrement(size_t i, size_t j) const
{