The task of identifying semantic relations in text is complicated by their heterogeneous nature.
it is often addressed using non-parametric instance-based classifiers like the k nearest neighbors (kNN), which effectively reduce it to measuring the relational similarity between a testing and each of the training examples.