I corrected direction of alignment

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1421 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
nicolabertoldi 2007-06-27 17:57:55 +00:00
parent ac91cb78cc
commit 75afdf04a5

View File

@ -171,10 +171,10 @@ int printtgttosrc(fstream& out,int m,int *a,int n,int* b){
ostringstream sout;
for (int j=1;j<=m;j++)
if (a[j])
sout << j-1 << "-" << a[j]-1 << " ";
for (int i=1;i<=n;i++)
if (b[i])
sout << b[i]-1 << "-" << i-1 << " ";
//fix the last " "
string str = sout.str();
if (str.length() == 0)
@ -194,9 +194,9 @@ int printsrctotgt(fstream& out,int m,int *a,int n,int* b){
ostringstream sout;
for (int i=1;i<=n;i++)
if (b[i])
sout << b[i]-1 << "-" << i-1 << " ";
for (int j=1;j<=m;j++)
if (a[j])
sout << j-1 << "-" << a[j]-1 << " ";
//fix the last " "
string str = sout.str();