摘要: 5.4Automatic Tagging 自动标注In the rest of this chapter we will explore various ways to automatically add part-of-speech tags to text. We will see that the tag of a word depends on the word and its context within a sentence. For this reason, we will be working with data at the level of (tagged) sentenc 阅读全文
posted @ 2011-08-26 22:05 牛皮糖NewPtone 阅读(1390) 评论(2) 推荐(1) 编辑
摘要: 计算机模拟常常需要用到随机选择的数。本文从随机数的一个简单应用开始简要地介绍Python的random模块。使用蒙特卡洛方法计算pi值Links:该问题来自于pudure university(普渡大学)python课程中的problem set2Monte Carlo methods are used to simulate complex physical and mathematical systems by repeated random sampling. In simple terms, given a probability, p, that an event will occu 阅读全文
posted @ 2011-08-26 11:14 牛皮糖NewPtone 阅读(7653) 评论(1) 推荐(1) 编辑