示例#1
0
文件: Loc.py 项目: corb555/Geodata
    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
示例#2
0
 def remove_matches(out, inp):
     out, inp = GeoUtil.remove_matching_sequences(text1=out, text2=inp, min_len=2)
     return out, inp