learn-NLP-luhuibo
learn-NLP-luhuibo copied to clipboard
记录学习NLP之路,一起加油
Bumps [pillow](https://github.com/python-pillow/Pillow) from 6.2.1 to 9.3.0. Release notes Sourced from pillow's releases. 9.3.0 https://pillow.readthedocs.io/en/stable/releasenotes/9.3.0.html Changes Initialize libtiff buffer when saving #6699 [@radarhere] Limit SAMPLESPERPIXEL to avoid runtime DOS #6700 [@wiredfool]...
Bumps [tensorflow](https://github.com/tensorflow/tensorflow) from 1.14.0 to 2.9.3. Release notes Sourced from tensorflow's releases. TensorFlow 2.9.3 Release 2.9.3 This release introduces several vulnerability fixes: Fixes an overflow in tf.keras.losses.poisson (CVE-2022-41887) Fixes a...
Bumps [numpy](https://github.com/numpy/numpy) from 1.16.4 to 1.22.0. Release notes Sourced from numpy's releases. v1.22.0 NumPy 1.22.0 Release Notes NumPy 1.22.0 is a big release featuring the work of 153 contributors spread...
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.1.2 to 5.4. Changelog Sourced from pyyaml's changelog. 5.4 (2021-01-19) yaml/pyyaml#407 -- Build modernization, remove distutils, fix metadata, build wheels, CI to GHA yaml/pyyaml#472 -- Fix for...
根据中文姓名猜测其性别,https://github.com/observerss/ngender
用BeautifulSoup解析网页数据,用正则表达式处理数据时时出现如下错误: python错误提示:TypeError: expected string or bytes-like object(预定的数据类型或者字节对象相关) 一般为数据类型不匹配造成的。 Python3中有六个标准的数据类型: 1. Number(数字) 2. string(字符串) 3. List(列表) 4. Tuple(元组) 5. Sets(集合) 6. Dictionary(字典) 可以通过print(type(object))来查当前的数据类型,式中object为要查询的对象。 首先有一段这样的代码: ``` import re import requests from bs4...
1、使用数据集: 数据集下载地址:豆瓣评论数据集:https://github.com/Computing-Intelligence/datasource/raw/master/movie_comments.csv 2、用pandas打开,查看原始数据类型,是object的,直接使用douban['star'].mean()会报错 3、网上搜索尝试了多种方法,但是没用 4、最后在文章https://juejin.im/post/5acc36e66fb9a028d043c2a5中,进行修改,在打开csv文档时加入converters={'star': lambda x: pd.to_numeric(x, errors='coerce')} ``` import pandas as pd douban = pd.read_csv('.\input\movie_comments.csv',converters={'star': lambda x: pd.to_numeric(x, errors='coerce')}) douban.info() douban.dtypes douban.fillna(0, inplace = True) douban.info() douban.dtypes douban.isnull().describe()...
``` # 解决matplotlib显示中文问题 # 仅适用于Windows plt.rcParams['font.sans-serif'] = ['SimHei'] # 指定默认字体 plt.rcParams['axes.unicode_minus'] = False # 解决保存图像是负号'-'显示为方块的问题 # MacOS请参考 http://wenda.chinahadoop.cn/question/5304 修改字体配置 ```
1、根据教程进行安装https://blog.csdn.net/qq_40304090/article/details/88594813 For windows users: 1.install Graphviz 2.Add Graphviz path to PATH variable 3.Restart PyCharm or other compiler. 2、重启pycharm再跑代码!!!
简单有效的笨办法: 把大文件夹直接exculeded,这样不影响,被excluded的文件还是可以在程序中用。  【原文】https://blog.csdn.net/hhhhhyyyyy8/article/details/83314940