This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import re | |
from operator import itemgetter | |
import requests | |
from itertools import combinations | |
def best_similarity(master, candidates): | |
counts = [0] * len(candidates) | |
for candidate_index, candidate in enumerate(candidates): | |
for item in candidate: |