Pattern-based word sketches for the extraction of semantic relations