Hi, I hope that I understood your question. I don't know about the score tool but regarding the decoder and the training options:
1. Training: You must use train-model.perl with the -phrase-word-alignment switch 2. Decoder output: To get the word and phrase alignment, you will need to specify the following switches for /moses-cmd/src/moses: -use-alignment-info -print-alignment-info-in-n-best -n-best-list - 1 -alignment-output-file - -include-alignment-in-n-best With this you will get the phrase and word alignment to stdout. I hope this helped, Andreas On Wed, Mar 16, 2011 at 10:25 AM, Jungwoo(Nick) Ryoo <[email protected]> wrote: > Hi, > > I hope I am repeating questions someone already asked. I am trying to get > the word alignment information using the toy model before rebuilding the > real model for that purpose. > > 1) It seems I need to give "phrase-word-alignment" option in > train-model.perl to put the alignment information in phrase table. But it is > not documented anywhere. > > 2) I suppose printing word-alignment from moses decoder is still disabled. I > couldn't print out the information. > > I tried to follow the advise from Philip. > http://www.mail-archive.com/[email protected]/msg01740.html > > But I couldn't use "--WordAlignment FilePath" option The "score" tool didn't > like it with "unknown option" error. > > $ > /export/home/moses/moses-scripts/current/training/phrase-extract/score/export/home/moses/engines/shared/en2de/models/toy_alignment/truecased_model/model/extract.sorted > /export/home/moses/engines/shared/en2de/models/toy_alignment/truecased_model/model/lex.f2e > /export/home/moses/engines/shared/en2de/models/toy_alignment/truecased_model/model/phrase-table.half.f2e > --WordAlignment > /export/home/moses/engines/shared/en2de/models/toy_alignment/truecased_model/model/wordalignment.info > > Score v2.0 written by Philipp Koehn > scoring methods for extracted rules > outputing word alignment > ERROR: unknown option > /wptg/engines/shared/en2de/models/toy_alignment/truecased_model/model/wordalignment.info > Exit code: 1 > > But the usage clearly says that it accepts such pattern of parameters > though. > > $ > /export/home/canaan/wptgmt/moses-scripts/current/training/phrase-extract/score > Score v2.0 written by Philipp Koehn > scoring methods for extracted rules > syntax: score extract lex phrase-table [--Inverse] [--Hierarchical] > [--OnlyDirect] [--LogProb] [--NegLogProb] [--NoLex] [--GoodTuring] > [--WordAlignment file] > > I wonder if there is any other way to get the word alignment information. > > Jung@Oracle. > > _______________________________________________ > 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
