Distributional learning of syntactic generalizations