Jul-04-2021, 08:00 AM
Hi,
You tell us the file with the models is "models/word2vec.model". But then in the code you assign something different:
You tell us the file with the models is "models/word2vec.model". But then in the code you assign something different:
self.path = "word2vec.model" # Word2Vec model path self.model = word2vec.Word2Vec.load(self.path)And the error message is:
Error:FileNotFoundError: [Errno 2] No such file or directory: 'word2vec.model'
Most obvious is "word2vec.model" must not be quoted.self.path = word2vec.model # Word2Vec model path