mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
Merge branch 'instantiate-languagemodelken'
This commit is contained in:
commit
74223532d4
@ -443,6 +443,20 @@ bool LanguageModelKen<Model>::IsUseable(const FactorMask &mask) const
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/* Instantiate LanguageModelKen here. Tells the compiler to generate code
|
||||
* for the instantiations' non-inline member functions in this file.
|
||||
* Otherwise, depending on the compiler, those functions may not be present
|
||||
* at link time.
|
||||
*/
|
||||
template class LanguageModelKen<lm::ngram::ProbingModel>;
|
||||
template class LanguageModelKen<lm::ngram::RestProbingModel>;
|
||||
template class LanguageModelKen<lm::ngram::TrieModel>;
|
||||
template class LanguageModelKen<lm::ngram::ArrayTrieModel>;
|
||||
template class LanguageModelKen<lm::ngram::QuantTrieModel>;
|
||||
template class LanguageModelKen<lm::ngram::QuantArrayTrieModel>;
|
||||
|
||||
|
||||
LanguageModel *ConstructKenLM(const std::string &lineOrig)
|
||||
{
|
||||
FactorType factorType = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user