python自然语言处理
金融小白数据分析之路
小白数据分析、前后端开发工作者
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)报错处理
#加入忽略 import os os.environ[‘TF_CPP_MIN_LOG_LEVEL’] = ‘2’原创 2020-11-17 16:10:12 · 15373 阅读 · 15 评论 -
DeprecationWarning: Call to deprecated `__getitem__` (Method will be removed in 4.0.0, use self.wv._
from gensim.models import word2vec model = 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 · 2783 阅读 · 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 · 1442 阅读 · 0 评论 -
pandas处理拼写错误用textblob模块处理
直接用textblob(x).correct() from textblob import TextBlob import pandas as pd d = {'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 · 717 阅读 · 0 评论 -
python处理英文拼写错位
用 textblob 模块,快速处理拼写错误 from textblob import TextBlob b = TextBlob("I havve goood speling!") print(b.correct()) #I have good spelling!原创 2020-10-08 21:48:02 · 335 阅读 · 0 评论
分享