def _pretty_exemplars(exemplars, lu):
 outstr = u''
 outstr += u'exemplar sentences for {0.name} in {0.frame.name}:\n\n'.format(lu)
 for (i, sent) in enumerate(exemplars):
  outstr += u'[{0}] {1}\n'.format(i, sent.text)
 outstr += u'\n'
 return outstr

def _pretty_exemplars ( exemplars , lu ) : outstr = u'' outstr += u'exemplar sentences for {0.name} in {0.frame.name}:\n\n' . format ( lu ) for ( i , sent ) in enumerate ( exemplars ) : outstr += u'[{0}] {1}\n' . format ( i , sent . text ) outstr += u'\n' return outstr
helper function for pretty-printing a list of exemplar sentences for a lexical unit .