摘要: 转自:http://machinelearningmastery.com/get-started-make-progress-machine-learning/#comment-270064Why Get Started in Machine LearningI believe machine le... 阅读全文
posted @ 2015-03-19 13:29 sevenguin 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1、nltk.text.Text common_context([x1,x2]):列出text中,词a和b拥有相同上下文的次,例如:a x1 boy, a x2 boy.那函数结构就是a_boy,中间横线就是这两者都行2、nltk.text.Text similar(x1)查询和x1相似的词。 但是... 阅读全文
posted @ 2015-02-27 00:07 sevenguin 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Python由于是非商业的,所以版本更新上有很多不兼容,例如python3和python2中的除法:python2.x:10/3 = 3 ; 10.0/3 = 3.333333...而python3.x:10/3 = 3.333333... ; 10.0/3 =3.333333...地板除:用 /... 阅读全文
posted @ 2015-02-06 14:12 sevenguin 阅读(116) 评论(0) 推荐(0) 编辑
摘要: __init__.py是创建python包时用的,详见文章:http://www.cnblogs.com/tqsummer/archive/2011/01/24/1943273.htmlpython中的Module是比较重要的概念。常见的情况是,事先写好一个.py文 件,在另一个文件中需要impor... 阅读全文
posted @ 2015-02-06 13:48 sevenguin 阅读(761) 评论(0) 推荐(0) 编辑
摘要: 1、分词:在开发分词器时访问一个已经开发好的原始文本是有益的 阅读全文
posted @ 2015-01-29 23:15 sevenguin 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.jbxue.com/article/15324.html在python编程中,模块的导入需要一个叫做"路径搜索"的过程。即在文件系统"预定义区域"中查找 mymodule.py文件(如果你导入 mymodule 的话)。这些预定义区域只不过是你的 Python 搜索路径的... 阅读全文
posted @ 2015-01-19 23:06 sevenguin 阅读(467) 评论(0) 推荐(0) 编辑
摘要: python版本3.4.2:1、书上的例子是from nltk.corpus import wordnet as wnwn.synset('car.n.01').lemma_names #获得同义词集wn.synset('car.n.01').definition #获得定义在3.4.2下执行得... 阅读全文
posted @ 2015-01-15 00:20 sevenguin 阅读(749) 评论(0) 推荐(0) 编辑
摘要: https://pypi.python.org/pypi/setuptools/,下载setuptools。安装成功后,运行下面的指令即可进行相应的安装。easy_install numpyeasy_install scipieasy_install matplotlib可以在:http://www... 阅读全文
posted @ 2015-01-05 23:50 sevenguin 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 监督学习是事先有分类信息,根据分类类别将数据进行分类;无监督学习是事先无分类信息将数据分类。 阅读全文
posted @ 2014-10-19 14:46 sevenguin 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1、Python安装之后会自动安装pip和easy_install、setuptools,但是用的时候报错:Unable to create process using '“”C:\Program Files (x86)\Python33\python.exe“” “C:\Program Files... 阅读全文
posted @ 2014-10-14 23:40 sevenguin 阅读(174) 评论(0) 推荐(0) 编辑