- txt = ''.join([_(u'Abstract').decode('utf8'), '\n'])
- txt += ''.join([_(u'Number of texts').decode('utf8'),' : ', '%i\n' % len(self.corpus.ucis)])
- txt += ''.join([_(u"Number of occurrences").decode('utf8'),' : %i\n' % occurrences])
- txt += ''.join([_(u'Number of forms').decode('utf8'), ' : %i\n' % (len(formes))])
- txt += ''.join([_(u"Number of hapax").decode('utf8'),' : %i (%.2f%%' % (len(hapax),phapax), _(u'of occurrences').decode('utf8'), ' - %.2f%% ' % phapax_forme, _(u'of forms').decode('utf8'), ')\n'])
- #print float(occurrences), float(len(self.corpus.ucis))
- txt += ''.join([_(u"Mean of occurrences by text").decode('utf8'), ' : %.2f' % (float(occurrences)/float(len(self.corpus.ucis)))])
+ txt = ''.join([_('Abstract'), '\n'])
+ txt += ''.join([_('Number of texts'),' : ', '%i\n' % len(self.corpus.ucis)])
+ txt += ''.join([_("Number of occurrences"),' : %i\n' % occurrences])
+ txt += ''.join([_('Number of forms'), ' : %i\n' % (len(formes))])
+ txt += ''.join([_("Number of hapax"),' : %i (%.2f%% ' % (len(hapax),phapax), _('of occurrences'), ' - %.2f%% ' % phapax_forme, _('of forms'), ')\n'])
+ txt += ''.join([_("Mean of occurrences by text"), ' : %.2f' % (float(occurrences)/float(len(self.corpus.ucis)))])