def previous(self, type=None):
i = self.start - <NUM_LIT:1><EOL>s = self.sentence<EOL>while i > <NUM_LIT:0>:<EOL><INDENT>if s[i].chunk is not None and type in (s[i].chunk.type, None):<EOL><INDENT>return s[i].chunk<EOL><DEDENT>i -= <NUM_LIT:1><EOL><DEDENT>
Returns the next previous chunk in the sentence with the given type.