def get_docs(self, vocab):
for string in self.strings:<EOL><INDENT>vocab[string]<EOL><DEDENT>orth_col = self.attrs.index(ORTH)<EOL>for tokens, spaces in zip(self.tokens, self.spaces):<EOL><INDENT>words = [vocab.strings[orth] for orth in tokens[:, orth_col]]<EOL>doc = Doc(vocab, words=words, spaces=spaces)<EOL>doc = doc.from_array(self.attrs, tokens)<EOL>yield doc<EOL><DEDENT>
Recover Doc objects from the annotations, using the given vocab.