Ways to convert textual data to numerical data
A renown method is using two layers Neural Network which transform each word to a vector. you can use word2vec library also to do this. To know more about this you can find this online article useful.