摘要: 转载请注明出处“一块努力的牛皮糖”:http://www.cnblogs.com/yuxc/新手上路,翻译不恰之处,恳请指出,不胜感谢 Updated log1st 2011.8.6 3.2Strings: Text Processing at the Lowest Level 字符串:最底层的文本处理PS:个人认为这部分很重要,字符串处理是NLP里最基本的部分,各位童鞋好好看,老鸟略过...It’s time to study a fundamental data type that we’ve been studiously(故意地) avoiding so far. In earlier 阅读全文
posted @ 2011-08-05 23:13 牛皮糖NewPtone 阅读(2577) 评论(0) 推荐(0)
摘要: CHAPTER 3Processing Raw Text 处理原始文本The most important source of texts is undoubtedly the Web. It’s convenient to have existing text collections to explore, such as the corpora we saw in the previous chapters. However, you probably have your own text sources in mind, and need to learn how to access t 阅读全文
posted @ 2011-08-05 21:51 牛皮糖NewPtone 阅读(2707) 评论(1) 推荐(0)
摘要: 博主懒人...练习未做完,下回补全...2.8Exercises练习 1. ○ Create a variable phrase containing a list of words. Experiment with the operations described in this chapter, including addition, multiplication, indexing, slicing, and sorting. List_practice=['Hello','World!']List_practice+['Pythoner' 阅读全文
posted @ 2011-08-05 21:36 牛皮糖NewPtone 阅读(2435) 评论(0) 推荐(0)
摘要: 转载请注明出处“一块努力的牛皮糖”:http://www.cnblogs.com/yuxc/新手上路,翻译不恰之处,恳请指出,不胜感谢2.7Further Reading深入阅读 Extra materials for this chapter are posted at http://www.nltk.org/ , including links to freely available resources on the Web. The corpus methods are summarized in the Corpus HOWTO, at http://www.nltk.org/howt 阅读全文
posted @ 2011-08-05 21:26 牛皮糖NewPtone 阅读(743) 评论(0) 推荐(0)
摘要: 转载请注明出处“一块努力的牛皮糖”:http://www.cnblogs.com/yuxc/新手上路,翻译不恰之处,恳请指出,不胜感谢2.6Summary 小结 • A text corpus is a large, structured collection of texts. NLTK comes with many corpora, e.g., the Brown Corpus, nltk.corpus.brown. 文本语料库是一个大型的结构化的一系列的文本。NLTK包含了许多语料库,例如,Brown Corpus,nltk.corpus.brown。 • Some text corp 阅读全文
posted @ 2011-08-05 21:24 牛皮糖NewPtone 阅读(2065) 评论(1) 推荐(0)
摘要: 新手上路,翻译不恰之处,恳请指出,不胜感谢Updated log1st:2011/8/6 2nd:新图标更换,原图标实在不喜欢那~相信有不少童鞋会喜欢~1.2 A Closer Look at Python: Texts as Lists of Words 进一步学习Python:将文本视作单词列表You’ve seen some important elements of the Python programming language. Let’s take a few moments to review them systematically.Lists 列表What is a text? 阅读全文
posted @ 2011-08-05 16:40 牛皮糖NewPtone 阅读(1799) 评论(0) 推荐(0)