mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 15:48:05 +03:00
Bugfixes: printing the correct phrases in the table, and fixed misspelling of monotonicity.
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/branches/hierarchical-reo@2885 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
92368ba490
commit
e812b2a8e3
@ -27,7 +27,7 @@ ModelScore* ModelScore::createModelScore(const string& modeltype) {
|
||||
return new ModelScoreMSLR();
|
||||
} else if (modeltype.compare("msd") == 0) {
|
||||
return new ModelScoreMSD();
|
||||
} else if (modeltype.compare("monotonoicity") == 0 ) {
|
||||
} else if (modeltype.compare("monotonicity") == 0 ) {
|
||||
return new ModelScoreMonotonicity();
|
||||
} else if (modeltype.compare("leftright") == 0) {
|
||||
return new ModelScoreLR();
|
||||
|
@ -24,7 +24,8 @@ void get_orientations(const string& pair, string& previous, string& next);
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
cerr << "Lexical Reordering Scorer, written by Sara Stymne\n"
|
||||
|
||||
cerr << "Lexical Reordering Scorer\n"
|
||||
<< "scores lexical reordering models of several types (hierarchical, phrase-based and word-based-extraction\n";
|
||||
|
||||
if (argc < 3) {
|
||||
@ -140,7 +141,7 @@ int main(int argc, char* argv[])
|
||||
} else if (f.compare(f_current) != 0 || e.compare(e_current) != 0) {
|
||||
//fe - score
|
||||
for (int i=0; i<models.size();++i) {
|
||||
models[i]->score_fe(f,e);
|
||||
models[i]->score_fe(f_current,e_current);
|
||||
}
|
||||
//reset
|
||||
for(map<string,ModelScore*>::const_iterator it = modelScores.begin(); it != modelScores.end(); ++it) {
|
||||
@ -150,7 +151,7 @@ int main(int argc, char* argv[])
|
||||
if (f.compare(f_current) != 0) {
|
||||
//f - score
|
||||
for (int i=0; i<models.size();++i) {
|
||||
models[i]->score_f(f);
|
||||
models[i]->score_f(f_current);
|
||||
}
|
||||
//reset
|
||||
for(map<string,ModelScore*>::const_iterator it = modelScores.begin(); it != modelScores.end(); ++it) {
|
||||
|
Loading…
Reference in New Issue
Block a user