Learning from syntax generalizations for automatic semantic annotation