Пример #1
0
 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
Пример #2
0
 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