mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-27 03:49:57 +03:00
disabling PhraseDictionary internal cache, because it blocks the dynamic behavior of PhraseDictionaryDynamicCacheBased
This commit is contained in:
parent
50970b2b59
commit
5ce3b877b5
@ -32,13 +32,14 @@ using namespace std;
|
||||
namespace Moses
|
||||
{
|
||||
//! contructor
|
||||
//the parent "PhraseDictionary" is created disabling its internal cache for translation options (third parameter set to 0)
|
||||
PhraseDictionaryDynamicCacheBased::PhraseDictionaryDynamicCacheBased(const std::string &line)
|
||||
: PhraseDictionary("PhraseDictionaryDynamicCacheBased", line, 0)
|
||||
: PhraseDictionary("PhraseDictionaryDynamicCacheBased", line)
|
||||
{
|
||||
|
||||
std::cerr << "Initializing PhraseDictionaryDynamicCacheBased feature..." << std::endl;
|
||||
|
||||
//disabling internal cache (provided by PhraseDictionary) for translation options (third parameter set to 0)
|
||||
m_maxCacheSize = 0;
|
||||
|
||||
m_score_type = CBTM_SCORE_TYPE_HYPERBOLA;
|
||||
m_maxAge = 1000;
|
||||
m_entries = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user