def doc2vec(self, doc):
bow = self.dictionary.doc2bow(doc['<STR_LIT>'])<EOL>if self.method == '<STR_LIT>':<EOL><INDENT>return self.lsi[self.tfidf[bow]]<EOL><DEDENT>elif self.method == '<STR_LIT>':<EOL><INDENT>return self.lda[bow]<EOL><DEDENT>elif self.method == '<STR_LIT>':<EOL><INDENT>return self.lda[self.tfidf[bow]]<EOL><DEDENT>elif self.method == '<STR_LIT>':<EOL><INDENT>return self.logent[bow]<EOL><DEDENT>
Convert a single SimilarityDocument to vector.