Amélioration de la détection des noms de communes
This commit is contained in:
parent
1b15ea6b2b
commit
3d84a79c29
@ -33,7 +33,7 @@ class PlaceGuesser:
|
||||
return addr
|
||||
|
||||
def __guess_city_name(self, part):
|
||||
part = part.strip().replace(" - ", "-")
|
||||
part = part.replace(" - ", "-").replace("(", "").replace(")", "").strip()
|
||||
if len(part) == 0:
|
||||
return None
|
||||
part = self.__remove_accents(part.lower()).replace("-", " ")
|
||||
|
Loading…
x
Reference in New Issue
Block a user