add script to get bag of words