会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lingwang3
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
11
下一页
2021年2月21日
关于日语分词Japanese segmenter
摘要: 1.主要JapaneseTokenizer https://pypi.org/project/JapaneseTokenizer/ 安装: pip install JapaneseTokenizer Supported Tokenizers 1.1 Mecab 安装请参考:https://www.d
阅读全文
posted @ 2021-02-21 10:19 lingwang3
阅读(299)
评论(0)
推荐(0)
2021年2月4日
python 语种识别的几种方法
摘要: 1.langid 2.langdetect 3.fasttext 本文主要讲fasttext 下载它的model,当然可以自己训练 import fasttext fasttext_model = fasttext.load_model('xx/bin/lid.bin') labels, score
阅读全文
posted @ 2021-02-04 16:35 lingwang3
阅读(1864)
评论(0)
推荐(0)
anaconda的安装与使用
摘要: 1.在合适的目录下载安装包 wget -c https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh 2.安装 bash Anaconda3-2020.02-Linux-x86_64.sh 3.修改配置 vi ~/.bas
阅读全文
posted @ 2021-02-04 10:34 lingwang3
阅读(173)
评论(0)
推荐(0)
2021年2月3日
如何去拆分句子
摘要: 最近项目中处理分句 1.中文一般使用ltp 2.欧洲语系一般使用segtok 3.本文重点讲解Stanford CoreNLP 3.1 优点如下: 功能足够多,一站式解决所有主流需求; 操作足够方便,放到 Python 里基本上就是一两行代码; 语言支持广泛,目前支持阿拉伯语,中文,英文,法语,德语
阅读全文
posted @ 2021-02-03 13:46 lingwang3
阅读(235)
评论(0)
推荐(0)
2021年1月21日
linux上有多个版本的python,如何进行版本切换
摘要: 1.根据安装提示,添加环境变量 添加方式为在用户目录下(不是anaconda的安装目录),输入(根据你的安装提示改成你的路径!) echo 'export PATH=...../anaconda3/bin:$PATH' >> ~/.bashrc 2.最后使路径生效,同样在用户目录下,输入: sour
阅读全文
posted @ 2021-01-21 10:52 lingwang3
阅读(948)
评论(0)
推荐(0)
2021年1月14日
阿里云 ubuntu部署一键v20Ray
摘要: 安装 V20Ray 主地址root#:: bash <(curl -s -L https://git.io/v20ray.sh) 备用地址root#:bash <(curl -s -L https://www.zhuguodong.com/xiazai/v20ray.sh) 如果提示 curl: c
阅读全文
posted @ 2021-01-14 11:26 lingwang3
阅读(652)
评论(0)
推荐(0)
2020年12月31日
如何从Google Drive快速下载大文件
摘要: 1.最近要下载https://ict.fbk.eu/上语料,每个语料都是60G压缩包以上 2.正常浏览器下载,少则下载3G,多则25G左右,就失效了 3.调研谷歌云端加星-副本,因费用问题,没有尝试 4.利用gdown库去下载,经常提示连接数众多,24小时后再试 pip install gdown
阅读全文
posted @ 2020-12-31 16:50 lingwang3
阅读(1854)
评论(0)
推荐(0)
2020年12月24日
ubuntu 更新python,从3.5更新到3.7
摘要: 查看 python3版本 python3 --version 安装python3.7 sudo apt-get install python3.7 报错如下: Reading package lists... Done Building dependency tree Reading state i
阅读全文
posted @ 2020-12-24 17:22 lingwang3
阅读(1309)
评论(0)
推荐(0)
2020年12月23日
windows批处理bat文件
摘要: 1.运行结束自动关闭运行窗口 @echo off D: cd D:\baiduTrans start python baidufanyi.py 2.运行调出cmd窗口 @echo off cmd /k "D: ;cd D:\交付&&python baidufanyi.py zh zh" exit
阅读全文
posted @ 2020-12-23 17:15 lingwang3
阅读(99)
评论(0)
推荐(0)
python3操作ftp
摘要: ftp相关的包不需要安装,python自带 # -*- coding:utf-8 -*- from ftplib import FTP def upload(f, remote_path, local_path): fp = open(local_path, "rb") buf_size = 102
阅读全文
posted @ 2020-12-23 17:10 lingwang3
阅读(291)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
11
下一页
公告