Generate sparse matrices of textual features