comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function [tags, tag_weight] = fm_retrieve_artist_similarity(artist1,artist2)
2 %[tags, tag_weight] = fm_get_artist_tags(artist_name)
3 %
4 % returns last.fm artist tags and tag weights for given artist
5 % this uses a lastpy python script to handle the REST data exchange
6
7 % call python function
8 tagstr = python('fm_retrieve_artist_similarity.py', artist1, artist2)
9
10 % parse text function output
11 %tags = textscan(tagstr,'%s %d','Delimiter',',');
12 %tag_weight = tags{2};
13 %tags = tags{1};