diff options
| author | Wu, Ke <wuke@cs.umd.edu> | 2014-12-17 16:11:38 -0500 | 
|---|---|---|
| committer | Wu, Ke <wuke@cs.umd.edu> | 2014-12-17 16:11:38 -0500 | 
| commit | 1613f1fc44ca67820afd7e7b21eb54b316c8ce55 (patch) | |
| tree | e02b77084f28a18df6b854f87a986124db44d717 /decoder/lextrans.cc | |
| parent | bd9308e22b5434aa220cc57d82ee867464a011f1 (diff) | |
| parent | 796768086a687d3f1856fef6489c34fe4d373642 (diff) | |
Merge with upstream
Diffstat (limited to 'decoder/lextrans.cc')
| -rw-r--r-- | decoder/lextrans.cc | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/decoder/lextrans.cc b/decoder/lextrans.cc index 74a18c3f..d13a891a 100644 --- a/decoder/lextrans.cc +++ b/decoder/lextrans.cc @@ -271,10 +271,9 @@ bool LexicalTrans::TranslateImpl(const string& input,                        Hypergraph* forest) {    Lattice& lattice = smeta->src_lattice_;    LatticeTools::ConvertTextOrPLF(input, &lattice); -  if (!lattice.IsSentence()) { -    // lexical models make independence assumptions -    // that don't work with lattices or conf nets -    cerr << "LexicalTrans: cannot deal with lattice source input!\n"; +  smeta->ComputeInputLatticeType(); +  if (smeta->GetInputType() != cdec::kSEQUENCE) { +    cerr << "LexicalTrans: cannot deal with non-sequence inputs\n";      abort();    }    smeta->SetSourceLength(lattice.size()); | 
