Skip to content

Commit afaece7

Browse files
committed
z
1 parent f228384 commit afaece7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/src/pyx/sparql_bots/render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def duplicates_work(members):
106106
# ---
107107
for qid, x in members.items():
108108
# ---
109-
lemma = re.sub(r"[\u064B-\u065F\u066A-\u06EF]", "", x['lemma'])
109+
lemma = re.sub(r"[\u064B-\u065F\u066A-\u06EF]$", "", x['lemma'])
110110
# ---
111111
if x not in duplicates[lemma]:
112112
# ---

python/src/pyx/sparql_bots/sparql_bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def find_duplicates(LIMIT=100):
249249
?1_item dct:language wd:Q13955;
250250
wikibase:lemma ?lemma;
251251
wikibase:lexicalCategory ?category.
252-
BIND(REPLACE(STR(?lemma), "[\u064B-\u065F\u066A-\u06EF]", "") AS ?lemma_fixed)
252+
BIND(REPLACE(STR(?lemma), "[\u064B-\u065F\u066A-\u06EF]$", "") AS ?lemma_fixed)
253253
#}
254254
}
255255
GROUP BY ?lemma_fixed ?category

0 commit comments

Comments
 (0)