Fixed trainer to take into account duplicate items in multiple lists.
Merge branch 'master' of github.com:rhuang/semantix