mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-07 12:10:36 +03:00
473e0e3e96
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3421 1f5c12ca-751b-0410-a591-d2e778427230
23 lines
578 B
C++
23 lines
578 B
C++
#include "lm/virtual_interface.hh"
|
|
|
|
#include "lm/exception.hh"
|
|
|
|
namespace lm {
|
|
namespace base {
|
|
|
|
Vocabulary::~Vocabulary() {}
|
|
|
|
void Vocabulary::SetSpecial(WordIndex begin_sentence, WordIndex end_sentence, WordIndex not_found, WordIndex available) {
|
|
begin_sentence_ = begin_sentence;
|
|
end_sentence_ = end_sentence;
|
|
not_found_ = not_found;
|
|
available_ = available;
|
|
if (begin_sentence_ == not_found_) throw BeginSentenceMissingException();
|
|
if (end_sentence_ == not_found_) throw EndSentenceMissingException();
|
|
}
|
|
|
|
Model::~Model() {}
|
|
|
|
} // namespace base
|
|
} // namespace lm
|