def fast_prefix(pref: str, result: str) -> str: """ Cleanup prefix. Remove any items from prefix that are in match result. Remove * #Args: pref: result: #Returns: Prefix with words removed """ return Loc.prefix_cleanup(pref, result) pref, res = GeoUtil.remove_matching_sequences(text1=pref, text2=result, min_len=2) return pref
def remove_matches(out, inp): out, inp = GeoUtil.remove_matching_sequences(text1=out, text2=inp, min_len=2) return out, inp