mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
check to make sure there is an InputFeature when decoding lattice or confusion network
This commit is contained in:
parent
e6d652aea5
commit
0237c8e3fe
@ -11,6 +11,7 @@
|
||||
#include "Sentence.h"
|
||||
#include "UserMessage.h"
|
||||
#include "moses/FF/InputFeature.h"
|
||||
#include "util/check.hh"
|
||||
|
||||
namespace Moses
|
||||
{
|
||||
@ -69,6 +70,7 @@ ConfusionNet::ConfusionNet()
|
||||
if (staticData.IsChart()) {
|
||||
m_defaultLabelSet.insert(StaticData::Instance().GetInputDefaultNonTerminal());
|
||||
}
|
||||
CHECK(StaticData::Instance().GetInputFeature());
|
||||
}
|
||||
ConfusionNet::~ConfusionNet()
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user