def top_terms(results=15):
 kwargs = {}
 if results:
  kwargs['results'] = results
 'Get top terms'
 result = util.callm(('%s/%s' % ('artist', 'top_terms')), kwargs)
 return result['response']['terms']

def top_terms ( results = 15 ) : kwargs = { } if results : kwargs [ 'results' ] = results 'Get top terms' result = util . callm ( ( '%s/%s' % ( 'artist' , 'top_terms' ) ) , kwargs ) return result [ 'response' ] [ 'terms' ]
get a list of the top overall terms args: kwargs: results : an integer number of results to return returns: a list of term document dicts example: .