Fix compile errors

This commit is contained in:
Barry Haddow 2012-05-24 21:34:06 +01:00
parent c397d2068b
commit 30900141e7
2 changed files with 4 additions and 3 deletions

View File

@ -28,6 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "Parameter.h"
#include "Util.h"
#include "InputFileStream.h"
#include "StaticData.h"
#include "UserMessage.h"
using namespace std;

View File

@ -123,9 +123,9 @@ PhraseDictionary* PhraseDictionaryFeature::LoadPhraseTable(const TranslationSyst
RuleTableTrie *dict;
if (staticData.GetParsingAlgorithm() == ParseScope3) {
dict = new RuleTableUTrie(m_numScoreComponent, this);
dict = new RuleTableUTrie(GetNumScoreComponents(), this);
} else {
dict = new PhraseDictionarySCFG(m_numScoreComponent, this);
dict = new PhraseDictionarySCFG(GetNumScoreComponents(), this);
}
bool ret = dict->Load(GetInput()
, GetOutput()
@ -134,7 +134,7 @@ PhraseDictionary* PhraseDictionaryFeature::LoadPhraseTable(const TranslationSyst
, m_tableLimit
, system->GetLanguageModels()
, system->GetWordPenaltyProducer());
assert(ret);
CHECK(ret);
return dict;
} else if (m_implementation == ALSuffixArray) {
// memory phrase table