Adding text tools including BoW representation, cosine similarity, and tokenization