#NEWLINE# def get_terms( self , sort = 'weight' , cache = True ) : #NEWLINE# #INDENT# "Get the terms associated with an artist\n        \n        Args:\n        \n        Kwargs:\n            cache (bool): A boolean indicating whether or not the cached value should be used (if available). Defaults to True.\n            \n            sort (str): A string specifying the desired sorting type (weight or frequency)\n            \n        Results:\n            A list of term document dicts\n            \n        Example:\n\n        >>> a = artist.Artist('tom petty')\n        >>> a.terms\n        [{u'frequency': 1.0, u'name': u'heartland rock', u'weight': 1.0},\n         {u'frequency': 0.88569401860168606,\n          u'name': u'jam band',\n          u'weight': 0.9116501862732439},\n         {u'frequency': 0.9656145118557401,\n          u'name': u'pop rock',\n          u'weight': 0.89777934440040685},\n         {u'frequency': 0.8414744288140491,\n          u'name': u'southern rock',\n          u'weight': 0.8698567153186606},\n         {u'frequency': 0.9656145118557401,\n          u'name': u'hard rock',\n          u'weight': 0.85738022655218893},\n         {u'frequency': 0.88569401860168606,\n          u'name': u'singer-songwriter',\n          u'weight': 0.77427243392312772},\n         {u'frequency': 0.88569401860168606,\n          u'name': u'rock',\n          u'weight': 0.71158718989399083},\n         {u'frequency': 0.60874110500110956,\n          u'name': u'album rock',\n          u'weight': 0.69758668733499629},\n         {u'frequency': 0.74350792060935744,\n          u'name': u'psychedelic',\n          u'weight': 0.68457367494207944},\n         {u'frequency': 0.77213698386292873,\n          u'name': u'pop',\n          u'weight': 0.65039556639337293},\n         {u'frequency': 0.41747136183050298,\n          u'name': u'bar band',\n          u'weight': 0.54974975024767025}]\n        >>> \n\n        " #NEWLINE# if ( sort and ( 'terms' in self . cache ) and ( sort == 'weight' ) ) : #NEWLINE# #INDENT# return self . cache [ 'terms' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# response = self . get_attribute ( 'terms' , sort = sort ) #NEWLINE# if ( sort == 'weight' ) : #NEWLINE# #INDENT# self . cache [ 'terms' ] = response [ 'terms' ] #NEWLINE# #UNINDENT# return response [ 'terms' ]