#NEWLINE# def referring_exs( self , answer , max_count = 5 ) : #NEWLINE# #INDENT# '\n\n        Given a Wikipedia page, generate all of the referring expressions.\n        Right now just rule-based, but should be improved.\n        ' #NEWLINE# for ii in self . _refex_lookup [ answer ] : #NEWLINE# #INDENT# if ( self . _refex_count [ ii ] < max_count ) : #NEWLINE# #INDENT# ( yield ii )