我使用下面的代码使用cPickle保存了模型
picklefile = path.split("-")[0]+".gmm"
cPickle.dump(gmm,open(dest + picklefile,'w'))
print '+ modeling completed for speaker:',picklefile," with data point = ",features.shape
features = np.asarray(())
count = 0
现在我想使用此方法解开文件
models = [cPickle.load(open(fname,'r')) for fname in gmm_files]
但是我得到这个错误:
models = [cPickle.load(open(fname,'r')) for fname in gmm_files]
ImportError: No module named gmm
我希望输出能够解开保存的文件