def _parse(self):
responses = []<EOL>for child in self._element:<EOL><INDENT>weight = int_attribute(child, '<STR_LIT>', <NUM_LIT:1>)<EOL>self._log.debug('<STR_LIT>'<EOL>.format(weight=weight, entry=child.text))<EOL>if not len(child):<EOL><INDENT>responses.append((child.text, weight))<EOL>continue<EOL><DEDENT>responses.append((tuple(self.trigger.agentml.parse_tags(child, self.trigger)), weight))<EOL><DEDENT>self._responses = tuple(responses)<EOL>
Generates a dictionary of responses from a <random> element