NLP: more details on bag of words