def jaccard_sim(A, B):
    r'''
    Returns the Jaccard similarity of A,B: ``|A \cap B| / |A \cup B|``
    We treat A and B as multi-sets (The Jaccard coefficient is technically
    meant for sets, although it is easily extended to multi-sets)
    '''
    return mag_intersect(A, B) / mag_union(A, B)


# --- main() ---
dataset/ETHPy150Open taherh/pysimsearch/pysimsearch/similarity.py/jaccard_sim/original