NLP常见库pip安装指令
1.安装numpy库指令
pip3 install --user numpy scipy matplotlib
2.安装sugertensor指令
pip install sugartensor
3.安装tensorflow2.0+指令 (cpu)
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow
tensorflow2.0安装成功验证程序:
import tensorflow as tf
A = tf.constant([[1, 2], [3, 4]])
B = tf.constant([[5, 6], [7, 8]])
C = tf.matmul(A, B)
print(C)
4.安装NLTK库
pip install nltk
安装NLTK库扩展包
import nltk nltk.download()
pip install Gensim
pip install TextBlob
pip install Polyglot