def _generate_hash(self, lista):
hash_elements = defaultdict(list)<EOL>for element in lista:<EOL><INDENT>key = self.similarity_key(element)<EOL>hash_elements[key].append(element)<EOL><DEDENT>return hash_elements<EOL>
:return: defaultdict(list)