Classifying patents based on their semantic content