def compareMelodicSimiResults(path_largerPyin,list_lessNRank_phrase_name):
'''
compare with the results of melodic similarity
find the intersection set, melodic similarity ranking > N, phonetic similarity ranking < N
:param path_largerPyin: path of the melodic similarity csv
:param list_lessNRank_phrase_name: ranking less than N phrase name by phonetic similarity
:return: intersection set of the phrase name
'''
phrase_names_largerN = []
with open(path_largerPyin,'r') as openfile:
csv_reader = csv.reader(openfile,delimiter=',')
for row in csv_reader:
phrase_names_largerN.append(row[0])
return set.intersection(set(phrase_names_largerN),set(list_lessNRank_phrase_name))
resultAnalysis.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录