def load(self, guess): start = len(self.header) doc = Document(metadata=guess.metadata, bytes=guess.numpy[start:]) doc.permute = PermutePrivate() print "loading %s: %s" % (self.id, doc) return doc
def load(self, guess): doc = Document(metadata=guess.metadata, bytes=guess.numpy) doc.set_segments(guess.parser) from omnivore.utils.extra_metadata import check_builtin check_builtin(doc) return doc