mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
dump
This commit is contained in:
parent
d17eab1f46
commit
0cd736be4e
@ -2360,7 +2360,11 @@ class mdict(cishubase):
|
|||||||
diss = {}
|
diss = {}
|
||||||
import winsharedutils
|
import winsharedutils
|
||||||
|
|
||||||
|
dedump = set()
|
||||||
for k in index("*" + word + "*"):
|
for k in index("*" + word + "*"):
|
||||||
|
if k in dedump:
|
||||||
|
continue
|
||||||
|
dedump.add(k)
|
||||||
dis = winsharedutils.distance(k, word)
|
dis = winsharedutils.distance(k, word)
|
||||||
if dis <= distance:
|
if dis <= distance:
|
||||||
results.append(k)
|
results.append(k)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user