|
|
@ -51,9 +51,10 @@ def get_ro_data(m, suffix): |
|
|
|
def get_similarity_count(l, r): |
|
|
|
def get_similarity_count(l, r): |
|
|
|
cnt = 0 |
|
|
|
cnt = 0 |
|
|
|
for (x, y) in COMPARSION_PAIR: |
|
|
|
for (x, y) in COMPARSION_PAIR: |
|
|
|
if l[x] == r[y]: |
|
|
|
r_value = r[y].replace('*', '') |
|
|
|
|
|
|
|
if l[x] == r_value: |
|
|
|
cnt += 1 |
|
|
|
cnt += 1 |
|
|
|
elif r[y] == 'Y/N' and l[x] in ('Y', 'N'): |
|
|
|
elif r_value == 'Y/N' and l[x] in ('Y', 'N'): |
|
|
|
cnt += 1 |
|
|
|
cnt += 1 |
|
|
|
return cnt |
|
|
|
return cnt |
|
|
|
|
|
|
|
|
|
|
|