Generate BOW and VSM files