Ejemplo n.º 1
0
def get_highest_wup(map_videos,video_index, key_word):
	all_keys = map_videos[video_index].keys();
	highest_wup = 0;
	for i in range(len(all_keys)):
		wup = getSenseSimilarity(key_word,all_keys[i]);  
		if wup > highest_wup:
			highest_wup = wup;
	return highest_wup;
Ejemplo n.º 2
0
def get_most_occuring_wup(map_videos,video_index, key_word):
	all_keys = map_videos[video_index].keys();
	wup = getSenseSimilarity(key_word,all_keys[0]);  
	return wup;