Convert Snorkel candidates to marked up sequences

        :param c:
        :param markers:
        :return:

def _mark_entities(self, c, markers):
        """
        Convert Snorkel candidates to marked up sequences

        :param c:
        :param markers:
        :return:

        """
        sent = c.get_parent().words
        positions = [
            [c[i].get_word_start(), c[i].get_word_end()]
            for i in range(self.cardinality)
        ]
        seq = mark_entities(sent, positions, markers=markers, style="insert")
        return [w for w in seq if w.strip()]