[*] fix word weight generation
Merge branch 'example_generator_word_weight_hotfix'