def _pretty_fulltext_sentence(sent):
 outstr = u''
 outstr += u'full-text sentence ({0.ID}) in {1}:\n\n'.format(sent, sent.doc.get(u'name', sent.doc.description))
 outstr += u'\n[POS] {0} tags\n'.format(len(sent.POS))
 outstr += u'\n[POS_tagset] {0}\n\n'.format(sent.POS_tagset)
 outstr += u'[text] + [annotationSet]\n\n'
 outstr += sent._ascii()
 outstr += u'\n'
 return outstr

def _pretty_fulltext_sentence ( sent ) : outstr = u'' outstr += u'full-text sentence ({0.ID}) in {1}:\n\n' . format ( sent , sent . doc . get ( u'name' , sent . doc . description ) ) outstr += u'\n[POS] {0} tags\n' . format ( len ( sent . POS ) ) outstr += u'\n[POS_tagset] {0}\n\n' . format ( sent . POS_tagset ) outstr += u'[text] + [annotationSet]\n\n' outstr += sent . _ascii ( ) outstr += u'\n' return outstr
helper function for pretty-printing an annotated sentence from a full-text document .