def bestLevMatch(spoken, lst):
print " "
bestMatch = [None, 0.65]
for ayah in lst:
score = ratio(spoken, ayah)
print ayah
print score
if score > bestMatch[1]:
bestMatch = [ayah, score]
return bestMatch[0]
# Takes in an ayah object from alfanous
# Returns a cleaned-up ayah object
评论列表
文章目录