The sentence graph 512 includes nodes represents the words in the sentence 402 and edges connecting the nodes. An edge in the sentence graph 512 indicates a relationship between the two words represented by the nodes connected therebetween. The sentence graph 512 includes at least one edge indicating a syntactic relationship between the words represented by the nodes connected therebetween, depending on the syntactic relationships between the words. As will be described below, one or more of the edges in the sentence graph 512 may indicate other relationships.