def retrieve_with_score(self, s):
all_sim = []<EOL>use_max_n = self.max_n is not None<EOL>for comparison_string in self._get_comparison_strings(s):<EOL><INDENT>score = self.comparison_func(s, comparison_string)<EOL>if score >= self.cutoff:<EOL><INDENT>all_sim.append((comparison_string, score))<EOL>if use_max_n and len(all_sim) >= self.max_n:<EOL><INDENT>return all_sim<EOL><DEDENT><DEDENT><DEDENT>return all_sim<EOL>
Retrieve all similar strings from the DB.

        :param s: str, string to check against the DB.
        :return: list of tuples - [(simlar_string, score)].
                 Empty list if not found.
        :rtype: list