简体   繁体   中英

Extract the features from Doc2Vec in Python

For a small project I need to extract the features obtained from Doc2Vec object in gensim.

I have used vector = model.infer_vector(words) is it correct?

是的,如果words是一个单词字符串列表,则以与训练期间将训练数据馈送到model相同的方式进行预处理/标记化。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM