一 学习实例1
1.1环境准备
暂时用的 python 版本是 3.8
anaconda url: https://www.continuum.io/downloads
https://docs.continuum.io/anaconda/install/
sckikit-learn url: http://scikit-learn.org/stable/install.html
NLTK url: https://www.nltk.org/install.html
matplotlib url: https://matplotlib.org/users/installing.html
安装 sckikit-learn 时可能因为没有代理而失败,最好使用 aliyun 代理库执行避免该错误
2 实例
创建一个 python 项目,创建一个python 文件,文件内容为:
import tensorflow as tf
import numpy as np
# print(tf.__version__)
graph = tf.Graph();
session = tf.compat.v1.InteractiveSession(graph=graph)
filename = ['text%d.txt'