【问题标题】:Extract the features from Doc2Vec in Python在 Python 中从 Doc2Vec 中提取特征
【发布时间】:2017-01-18 11:54:15
【问题描述】:

对于一个小项目,我需要提取从 gensim 中的 Doc2Vec 对象获得的特征。

我用过vector = model.infer_vector(words),对吗?

【问题讨论】:

    标签: python doc2vec


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-02
      • 2021-06-23
      • 2016-12-13
      • 1970-01-01
      • 2017-05-28
      • 1970-01-01
      • 2020-11-13
      • 1970-01-01
      相关资源
      最近更新 更多