mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 07:42:21 +03:00
Additional check for document map if document bias is requested.
This commit is contained in:
parent
8e6eb067bc
commit
8a174beb44
@ -417,6 +417,8 @@ namespace Moses {
|
||||
( string const& bserver, string const& text, ostream* log ) const
|
||||
{
|
||||
sptr<DocumentBias> ret;
|
||||
UTIL_THROW_IF2(m_sid2docid == NULL,
|
||||
"Document bias requested but no document map loaded.");
|
||||
ret.reset(new DocumentBias(*m_sid2docid, m_docname2docid,
|
||||
bserver, text, log));
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user