Hello everyone!

I'm a bit interested in the -target-word-insertion-feature to Moses. The
help output is as follows:

-target-word-insertion-feature: Count feature for each unaligned target
word

I tried calling it without any options and it didn't seem to do
anything, so I checked out the code and found a couple of hints:

1) in build-sparse-lexical-features.perl:

[target-word-insertion-feature]
0 $file

2) in moses/StaticData.cpp:

UserMessage::Add("Format of target word insertion feature parameter is:
--target-word-insertion-feature <factor> [filename]");

So, this would suggest that it requires a factor, and a filename is
optional. The code instantiates a class TargetWordInsertionFeature. 

If we look at the TargetWordInsertionFeature, it seems to:

* Load a file with a list of words if it exists 
* Make a boolean array of size 16 (I guess this is because of the limit
on feature score length in ScoreComponentCollection)
* For each word in the phrase it sets if it is aligned or not
* If the word is unaligned it adds 1 to the score for that word
feature.(?)

... this is where I get lost. 

Can anyone give a better description of what this option does, and how
it effects the translation (if at all).

My initial interest was in getting statistics on unaligned words that
appeared in the output. Can this option give that ?

Thanks in advance for any help!

Fran

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to