I have to implement a module in which i need to group sentences(strings) having similar meaning into different clusters. I read about k-means , EM clustering etc. But the problem which i am facing is that these algorithms are explained with vector points on a graph. I am not getting how these algorithms can be implemented for a sentence(String) having similar meaning. Please suggest some appropriate ways.
For example , Lets consider a classroom scenario.. 1) Teacher has ample knowledge. 2) Students understand what teacher teaches. 3) Teacher is sometimes punctual in class. 4) Teacher is audible in class.
Lets say we have these 4 sentences. Then looking at them we can say that sentence 1 and 2 are of similar meaning. But sentence 3 and 4 are neither related to each other nor to the first two. In this way i need to classify the sentences. So how can it be done?
tensorflow
with python.