def sims_by_vec(self, vec, normalize=None):
if normalize is None:<EOL><INDENT>normalize = self.qindex.normalize<EOL><DEDENT>norm, self.qindex.normalize = self.qindex.normalize, normalize <EOL>self.qindex.num_best = self.topsims<EOL>sims = self.qindex[vec]<EOL>self.qindex.normalize = norm <EOL>return self.sims2scores(sims)<EOL>
Find the most similar documents to a given vector (=already processed document).