':param show: all, neg, or pos (for negative-only or positive-only)'

def show_most_informative_features(self, n=10, show=u'all'):

    fids = sorted(list(range(len(self._weights))), key=(lambda fid: abs(self._weights[fid])), reverse=True)
    if (show == u'pos'):
        fids = [fid for fid in fids if (self._weights[fid] > 0)]
    elif (show == u'neg'):
        fids = [fid for fid in fids if (self._weights[fid] < 0)]
    for fid in fids[:n]:
        print((u'%8.3f    %s' % (self._weights[fid], self._encoding.describe(fid))))
