mirror of
https://github.com/heyarne/berliner-winter.git
synced 2026-05-06 19:23:39 +02:00
Fix bug so one potential place following another directly is also matched
This commit is contained in:
parent
73dee66d16
commit
adb0252130
1 changed files with 4 additions and 1 deletions
|
|
@ -30,7 +30,10 @@ def get_potential_places(article_place, article_body):
|
||||||
# we stop the match, so append the current match
|
# we stop the match, so append the current match
|
||||||
places.append(current_match)
|
places.append(current_match)
|
||||||
current_match = []
|
current_match = []
|
||||||
is_matching = False
|
|
||||||
|
# whe we're looking at a preposition again, just start new match
|
||||||
|
if tuple[1] not in ("APPR", "APPRART"):
|
||||||
|
is_matching = False
|
||||||
else:
|
else:
|
||||||
# start matching when we have a preposition
|
# start matching when we have a preposition
|
||||||
if tuple[1] in ("APPR", "APPRART"):
|
if tuple[1] in ("APPR", "APPRART"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue