【问题标题】:Word2vec from scratch: No module named 'utils_modified'Word2vec 从头开始​​:没有名为“utils_modified”的模块
【发布时间】:2020-11-21 20:06:57
【问题描述】:

我正在尝试重现此代码:https://github.com/n0obcoder/skip-gram-model

但是我收到了这个错误:

ModuleNotFoundError: No module named 'utils_modified'

你能告诉我那里出了什么问题吗?

【问题讨论】:

  • from Skip-Gram-Model import utils_modified 包括以上行

标签: python gensim word2vec torch


【解决方案1】:

正如 Subbu VidyaSekar 在 cmets 中所说,您需要从 Skip-Gram-Model 导入 utils_modified

你首先需要在电脑终端安装Skip-Gram-Model,然后包含

from Skip-Gram-Model import utils_modified

作为代码的第一行。

【讨论】:

  • 可能我没有安装它,因为我从未使用过它。但是,如果我尝试使用 pip install Skip-Gram-Model 安装它,我会得到:Collecting Skip-Gram-Model Could not find a version that satisfies the requirement Skip-Gram-Model (from versions: ) No matching distribution found for Skip-Gram-Model
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-01-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多