wolffd@0: function [tags, tag_weight] = fm_retrieve_artist_similarity(artist1,artist2) wolffd@0: %[tags, tag_weight] = fm_get_artist_tags(artist_name) wolffd@0: % wolffd@0: % returns last.fm artist tags and tag weights for given artist wolffd@0: % this uses a lastpy python script to handle the REST data exchange wolffd@0: wolffd@0: % call python function wolffd@0: tagstr = python('fm_retrieve_artist_similarity.py', artist1, artist2) wolffd@0: wolffd@0: % parse text function output wolffd@0: %tags = textscan(tagstr,'%s %d','Delimiter',','); wolffd@0: %tag_weight = tags{2}; wolffd@0: %tags = tags{1};