1.virtual environment using virtualenv
python3-mvenv/path/to/new/virtual/environment
source ./path/bin/activate
2. 在某个package需要安装相关package时,可以写成requirements.txt的形式。
pip3 install -r requirements.txt#you can create a virtual env before.
gensim >= 0.13.1
numpy >= 1.11.1
tinysegmenter3 >= 0.1.0
wget >= 3.2
mecab-python3 >= 0.7
3. pytorch建立网络结构
self.visual_nn = Sequential(
Linear(visual_feature_dim, self.hidden_dim),
Sigmoid(),
)
网友评论