Constructs a probabilistic graphical model based on a given set of sentences in order to construct a feature vector for each word.