disabling PhraseDictionary internal cache, because it blocks the dynamic behavior of PhraseDictionaryDynamicCacheBased

This commit is contained in:
Nicola Bertoldi 2014-01-14 09:47:47 +01:00
parent 50970b2b59
commit 5ce3b877b5

View File

@ -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;