会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hozhangel
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
15
下一页
2017年12月4日
python函数使用
摘要: 定义函数: 让我们修改一下my_abs的定义,对参数类型做检查,只允许整数和浮点数类型的参数。数据类型检查可以用内置函数isinstance()实现: 空函数 如果想定义一个什么事也不做的空函数,可以用pass语句: 返回多个值 但其实这只是一种假象,Python函数返回的仍然是单一值:
阅读全文
posted @ 2017-12-04 11:24 hozhangel
阅读(295)
评论(0)
推荐(0)
2017年11月30日
Perl 正则匹配——对分词标注结果正则匹配
摘要: 一个标注网站:http://www.aihanyu.org/cncorpus/CpsWParser.aspx
阅读全文
posted @ 2017-11-30 18:26 hozhangel
阅读(329)
评论(0)
推荐(0)
Python读写文件 中文正则匹配
摘要: 读写文件 中文正则匹配 好麻烦 代码很短 错误调了很多
阅读全文
posted @ 2017-11-30 18:23 hozhangel
阅读(2609)
评论(0)
推荐(0)
2017年11月29日
nltk.download()
摘要: 在自己电脑上 安装python的nltk包之后, 进入python import nltk nltk.download() 然后选择下载所有,下载了四个多小时。。终于下载好了(显示:占用空间3.25 GB (3,495,780,352 字节)) (之间几度以为他卡了,看了下载地址的文件包占用空间慢慢
阅读全文
posted @ 2017-11-29 17:40 hozhangel
阅读(2865)
评论(0)
推荐(0)
2017年11月28日
词性标注
摘要: 一些机器翻译方面的教程 手把手教你编译MOSES机器翻译系统http://blog.csdn.net/han_xiaoyang/article/details/10101701http://blog.csdn.net/hero51/article/details/39709407http://dan
阅读全文
posted @ 2017-11-28 14:27 hozhangel
阅读(282)
评论(0)
推荐(0)
2017年11月27日
64-bit_windows__nltk。。。
摘要: 过程很坎坷 最终成功的步骤: windows nltk安装 Python 3.5(自带pip) python -m pip install -U pip (pip升级) 添加pip.exe路径,在Python安装目录/script目录 下载相应版本的numpy安装包,whl文件 在网站https:/
阅读全文
posted @ 2017-11-27 13:12 hozhangel
阅读(199)
评论(0)
推荐(0)
2017年11月24日
44. Wildcard Matching
摘要: 代码来自:https://leetcode.com/problems/wildcard-matching/discuss/ 几种情况: 一:遇到“*” 就记录此时s及p的位置istar及jstar,s向后移,p保持“*”。 二:当s[i]=p[j]或者p[j] = "?"时,就同时向后移,(不在if
阅读全文
posted @ 2017-11-24 19:18 hozhangel
阅读(183)
评论(0)
推荐(0)
并行计算
摘要: 卷积层:计算量大,参数少 数据并行是把训练数据分成多份,在不同机器训练,然后参数更新到parameter server; 数据并行是指对训练数据做切分,同时采用多个模型实例,对多个分片的数据并行训练。要完成数据并行需要做参数交换,通常由一个参数服务器(Parameter Server)来帮助完成。在
阅读全文
posted @ 2017-11-24 17:15 hozhangel
阅读(347)
评论(0)
推荐(0)
2017年11月22日
43. Multiply Strings
摘要: Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2. Note: 常规计算,一个被乘数,一个乘数
阅读全文
posted @ 2017-11-22 21:06 hozhangel
阅读(127)
评论(0)
推荐(0)
42. Trapping Rain Water
摘要: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
阅读全文
posted @ 2017-11-22 20:28 hozhangel
阅读(140)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
15
下一页
公告