def _create_examples(self, lines, mode):
        """Creates examples for the training and dev sets."""
        examples = []
        for (i, line) in enumerate(lines):
            guid = "%s-%s" % (mode, i)
            text = line[0]
            bbox = line[1]
            label = line[2]
            examples.append(
                DocExample(guid=guid, text_a=text, text_b=None, bbox=bbox, label=label)
            )
        return examples
Creates examples for the training and dev sets.
layoutlm/deprecated/layoutlm/data/rvl_cdip.py