added changes on checking similarity

This commit is contained in:
kicap1992
2022-03-21 00:07:28 +08:00
parent 638f0a9aee
commit 9da68fbc38
172 changed files with 99465 additions and 49 deletions

10
base/api/calltomapper.py Normal file
View File

@ -0,0 +1,10 @@
from .haystackmapper import mapper
def calltomapper(haystacks, needle, processnumber, totalprocesses, return_emissions):
""" calltomapper is a target function of a process from interface
which in turn calls the method haystackmap.mapper with argument needle """
print("Finished with process ", processnumber, " word(sample) size of ",len(needle))
return_emissions += mapper(haystacks, needle)