def F(self, t, yp, y):
        """ Create the vector of active indicies for this label setting. """
        # label-label-token; bigram features
        #for f in self.sequence[t].attributes:
        #    yield '[%s,%s,%s]' % (yp,y,f)
        # label-token; emission features
        for f in self.sequence[t].attributes:
            yield '[%s,%s]' % (y,f)
        # label "prior" feature
        yield '[%s]' % y
        # label-label; transition feature
        yield '[%s,%s]' % (yp,y)
dataset/ETHPy150Open timvieira/crf/crf/stringcrf.py/Instance.F/original