Hi Carlos, I was able to run the code. The problem about the ids depends on the version of Giza++ that you are using. You need to use the version that you get with the incremental code (inc-giza-pp) as it uses a special formatting. Also be sure to use all the inc-giza-pp scripts to create your vocab and coocurrence files.
I guess that after this issue I needed to solve another problem, but I do not remember. Please let me know if it works, in case I'll dig in my code! Thanks a lot Marco On Wed, Jun 13, 2012 at 3:51 PM, Carlos Henriquez < [email protected]> wrote: > Hi Marco. > > I'm facing the same problem right now and I found out that the code has an > invalid assert. The IDs will never match. I try commenting that line and > keep going but then I found out that the resulting vocabulary starts with > an ID=2 instead of ID=1 like the original vocabulary. > > Again, I changed that to keep going but then the snt2cooc threw a > segmentation fault when I ran it in the inverse direction and even GIZA++ > complained later when I tried to align in the src-trg direction. > > Basically, I haven't been able to follow the steps described on the web. > Did you solve it? > > Now to Hieu. > With mgiza I haven't had any problems. > > That force alignment from mgiza, is really incremental? or it only uses > the old models to align new sentences. > > ------------------------------ > *De:* Hieu Hoang <[email protected]> > *Para:* marco turchi <[email protected]> > *CC:* moses-support <[email protected]> > *Enviado:* MiƩrcoles 22 de febrero de 2012 8:48 > *Asunto:* Re: [Moses-support] problem using plain2snt.out for incremental > training > > Hi marco > > Mgiza also offers incremental training (it's called forced alignment > there). > > Not sure how it differs from abby levenbergs Giza version > > Hieu > Sent from my flying horse > > On 21 Feb 2012, at 04:40 PM, marco turchi <[email protected]> wrote: > > Hi > I'm following the incremental training steps from the Moses web site and > I'm running the plain2snt command: > plain2snt.out newData.lower.1.fr newData.lower.1.en -txt1-vocab > ../training/prepared.1/fr.vcb -txt2-vocab ../training/prepared.1/en.vcb > > but I get this error > plain2snt.out: plain2snt.cpp:28: int loadVocab(): Assertion `iid1.size()-1 > == ID' failed. > > and it is not clear to me what is going wrong... any ideas? > > I have trained the model using the last version of moses and I have > downloaded the incremental training scripts from the web site. > > Thanks a lot > Marco > > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support > > > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support > > >
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
