摘要:
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 阅读全文
摘要:
博主懒人...练习未做完,下回补全...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' 阅读全文
摘要:
转载请注明出处“一块努力的牛皮糖”: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 阅读全文
摘要:
转载请注明出处“一块努力的牛皮糖”: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 阅读全文
摘要:
新手上路,翻译不恰之处,恳请指出,不胜感谢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? 阅读全文