Mercurial > hg > camir-aes2014
view core/magnatagatune/fm_retrieve_artist_similarity.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
line wrap: on
line source
function [tags, tag_weight] = fm_retrieve_artist_similarity(artist1,artist2) %[tags, tag_weight] = fm_get_artist_tags(artist_name) % % returns last.fm artist tags and tag weights for given artist % this uses a lastpy python script to handle the REST data exchange % call python function tagstr = python('fm_retrieve_artist_similarity.py', artist1, artist2) % parse text function output %tags = textscan(tagstr,'%s %d','Delimiter',','); %tag_weight = tags{2}; %tags = tags{1};