def normalizeMalwareNamesStep1(malwarenames):
# malwarenames-list to string
names = " ".join(malwarenames)
for trn in TRENNER:
names = names.replace(trn, " ").lower()
for key in sorted(MAPPING, key=len, reverse=True):
names = names.replace(key, MAPPING[key])
return names
# similarity from the ratio, token_sort and token_set ratio methods in FuzzyWuzzy
评论列表
文章目录