Creating bag of words for wiki