File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
python/src/pyx/sparql_bots Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 # ---
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments