![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python自然语言处理
金融小白数据分析之路
小白数据分析、前后端开发工作者
展开
-
This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)报错处理
#加入忽略import osos.environ[‘TF_CPP_MIN_LOG_LEVEL’] = ‘2’原创 2020-11-17 16:10:12 · 15212 阅读 · 15 评论 -
DeprecationWarning: Call to deprecated `__getitem__` (Method will be removed in 4.0.0, use self.wv._
from gensim.models import word2vecmodel = word2vec.Word2Vec.load("hoge.model")vec = model["queen"]print(len(vec.tolist()))#运行出现错误DeprecationWarning: Call to deprecated `__getitem__` (Method will be removed in 4.0.0, use self.wv.__getitem__() instead)原创 2020-11-16 15:51:03 · 2631 阅读 · 1 评论 -
np.zeros_like使用
y = np.arange(3, dtype=float)print(y)#array([0., 1., 2.])print(np.zeros_like(y))#array([0., 0., 0.])原创 2020-11-07 09:45:32 · 1292 阅读 · 0 评论 -
pandas处理拼写错误用textblob模块处理
直接用textblob(x).correct()from textblob import TextBlobimport pandas as pdd = {'col1': ["heoll chica", "hello girl"], 'col2': [2, 4]}df = pd.DataFrame(data=d)print(df)def textblob_test(x): blob = TextBlob(x) return blob.correct()print(df['col1原创 2020-10-09 16:02:31 · 544 阅读 · 0 评论 -
python处理英文拼写错位
用 textblob 模块,快速处理拼写错误from textblob import TextBlobb = TextBlob("I havve goood speling!")print(b.correct())#I have good spelling!原创 2020-10-08 21:48:02 · 253 阅读 · 0 评论