其中第2部分是自己实现的: 输入为:数字编码的文本,word2id和id2word 输出为:词向量
windows系统:win+r 输入cmd,回车
pip install jieba -i https://pypi.douban.com/simple/
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gensim
nvcc -V 查看cuda版本
conda install pytorch torchvision cudatoolkit=9.0(9.0为cuda的版本号)
torch.cuda.is_available()