Python
文章平均质量分 75
mg1616
这个作者很懒,什么都没留下…
展开
-
Python 的性能测试及用C扩展Python的基本例子
看到网上有性能测试 Python 和 node.js,用的斐波那契数列计算,Python 被 nodejs 甩了70多倍,自己用 蒙特卡洛打点计算圆周率测了一遍test.py 如下: ``` python import time import math from random import random from multiprocessing import Pool def原创 2015-04-29 21:51:13 · 651 阅读 · 0 评论 -
Windows 7 x64系统安装CRFsuite给Python使用
CRFsuite 是一个实现 Conditional Random Fields (CRFs) 条件随机场用来标注序列数据的工具,用在中文分词具有比 crf++更快的训练速度。 系统环境:windows 7 x64,Microsoft Visual Studio 2010,Python 2.7.9 CRFsuite:从 http://www.chokkan.org/software/crfsui原创 2015-04-30 21:21:43 · 7006 阅读 · 18 评论 -
Windows下CRF++ 分词实践及Python分词效果评测
实践参照博文:中文分词入门之字标注法4步骤如下: 1. 下载 CRF++-0.58.tar.gz, 解压到 C:\path\crf++-0.58 下 2. 用 SWIG 工具得到 _CRFPP.pyd,CRFPP.py 两个文件。参见本博:Windows 7 x64系统安装CRFsuite给Python使用 3. 创建 模板文件如下:# UnigramU00:%x[-2,0]U01:%x[原创 2015-05-07 00:42:00 · 11756 阅读 · 4 评论