Hey rhonda

The ini file looks ok. However, I think u have to convert the ini file line
ending to unix style using the unix command
        dos2unix
Or it might be the other way around
        unix2dos

-----Original Message-----
From: Dunn, Rhonda T [mailto:[EMAIL PROTECTED] 
Sent: 07 April 2008 11:27
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: assert(weightT.size() == scoreVector.size()) in
TargetPhrase::SetScore(const ScoreProducer* ... failed

Hi Hieu, [and Philipp]

Hieu, how's the Ph.D. going? My is going slowly.....

I am running moses-cmd (the moses decoder) on a Windows 2003 server. I am
using the binary phrase table Spanish to English (es-en) provided under
SampleData on the website. I am also using the lastest revision from the SVN
trunk. 

Each time I compile and execute, the first sentence of the file I am
attempting to translate appears on screen and then an assertion is thrown
stating assert(weightT.size() == scoreVector.size()) Failed!

I traced through the code and found the following:

1) the assert statement is the first line in the function: void
TargetPhrase::SetScore(const ScoreProducer* translationScoreProducer, const
vector<float> &scoreVector, const vector<float> &weightT, float weightWP,
const LMList &languageModels)  

2) SetScore is being called by PDTAimp::CreateTargetPhrase 

3) weightT.size = 1 and scoreVector.size = 5 at the time of the assertion

4) the Number of Score Components = 1 at the time of the assertion

5) allWeights.size = 5 at the time of the assertion

6) CreateTargetPhrase is being invoked by PDTAimp::GetTargetPhraseCollection

7) in GetTargetPhraseCollection: scoreVector.size = 5

8) scoreVector is defined with the following statement in
GetTargetPhraseCollection:
std::vector<float> scoreVector(probVector.size());

This is all I know right now. Oh, if it helps my moses.ini file is also
attached.

Thanks, Hieu any direction you could provide on this problem would be
greatly appreciated.

--Rhonda

P.S. I realize Linux/UNIX is better but I'm a girl and Windows is prettier
:-)

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to