mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
fixed bug in InterpolatedScorer
This commit is contained in:
parent
34c8975aa7
commit
7b9c5c1194
@ -164,7 +164,7 @@ void InterpolatedScorer::prepareStats(size_t sid, const string& text, ScoreStats
|
|||||||
{
|
{
|
||||||
stringstream buff;
|
stringstream buff;
|
||||||
string align = text;
|
string align = text;
|
||||||
string sentence = "";
|
string sentence = text;
|
||||||
size_t alignmentData = text.find("|||");
|
size_t alignmentData = text.find("|||");
|
||||||
//Get sentence and alignment parts
|
//Get sentence and alignment parts
|
||||||
if(alignmentData != string::npos) {
|
if(alignmentData != string::npos) {
|
||||||
|
Loading…
Reference in New Issue
Block a user