mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-02 17:09:36 +03:00
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:
parent
ac91cb78cc
commit
75afdf04a5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user