build inverted-index from revisions' Bag-of-Words models