Text Processing in Python describes techniques for manipulation of text using the Python programming language. At the broadest level, text processing is simply taking textual information and doing something with it. This might be restructuring or reformatting it, extracting smaller bits of information from it, or performing calculations that depend on the text. Text processing is arguably what most programmers spend most of their time doing. Because Python is clear, expressive, and object-oriented it is a perfect language for doing text processing, even better than Perl. As the amount of data everywhere continues to increase, this is more and more of a challenge for programmers. This book is not a tutorial on Python. It has two other goals: helping the programmer get the job done pragmatically and efficiently; and giving the reader an understanding - both theoretically and conceptually - of why what works works and what doesn't work doesn't work. Mertz provides practical pointers and tips that emphasize efficent, flexible, and maintainable approaches to the textprocessing tasks that working programmers face daily.
From the Back Cover:
Text Processing in Python is an example-driven, hands-on tutorial that carefully teaches programmers how to accomplish numerous text processing tasks using the Python language. Filled with concrete examples, this book provides efficient and effective solutions to specific text processing problems and practical strategies for dealing with all types of text processing challenges.
Text Processing in Python begins with an introduction to text processing and contains a quick Python tutorial to get you up to speed. It then delves into essential text processing subject areas, including string operations, regular expressions, parsers and state machines, and Internet tools and techniques. Appendixes cover such important topics as data compression and Unicode. A comprehensive index and plentiful cross-referencing offer easy access to available information. In addition, exercises throughout the book provide readers with further opportunity to hone their skills either on their own or in the classroom. A companion Web site (http://gnosis.cx/TPiP) contains source code and examples from the book.
Here is some of what you will find in thie book:
* When do I use formal parsers to process structured and semi-structured data? Page 257
* How do I work with full text indexing? Page 199
* What patterns in text can be expressed using regular expressions? Page 204
* How do I find a URL or an email address in text? Page 228
* How do I process a report with a concrete state machine? Page 274
* How do I parse, create, and manipulate internet formats? Page 345
* How do I handle lossless and lossy compression? Page 454
* How do I find codepoints in Unicode? Page 465
《丝绸之路上的西州回鹘王朝》内容简介:公元840年,称雄蒙古高原近百年的回鹘汗国破灭。回鹘部众西迁至天山南北两麓,以吐鲁番盆地
跟我学PLC编程-(第二版) 本书特色 周云水编著的《跟我学plc编程(第2版)》以常用的三菱fx系列plc为例,简要介绍了plc的基本结构、工作原理、分类与应...
本书主要针对lighttpd源码进行了深度剖析。主要内容包括:lighttpd介绍与分析准备工作、lighttpd网络服务主模型、lighttpd数据结
《联网力:传统行业互联网化转型的原动力》内容简介:本书主要讲述了互联网浪潮及其带来的新思维与新理念,并归纳总结了新时代下企
《缘缘堂新笔》内容简介:1931年,丰子恺先生第一本散文集《缘缘堂随笔》在开明书店出版,深受读者喜爱。此后,“缘缘堂”系列作品
本书指导读者使用Ajax、PHP及其他相关技术建立快速响应的网页。本书不仅从Ajax的客户端和服务器端技术两个方面指导读者逐步掌握A
机器学习理论及应用 本书特色 《机器学习理论及应用》:当代科学技术基础理论与前沿问题研究丛书:中国科学技术大学校友文库。机器学习理论及应用 内容简介 机器学习新...
内容简介活用CSS讓Web設計更多元!本書因應Web設計而生,在書中我們將焦點放在最重要的兩種語言上,即XHTML與CSS,並融合了目前最
由杜波依斯编著的《MySQL技术内幕(第4版)》介绍了MySQL的基础知识及其有别于其他数据库系统的独特功能,包括SQL的工作原理和My
1997年5月11日,全世界数百万人通过电视观看了一场惊人的胜利——一台计算机战胜了欲捍卫世界冠军称号的卡斯帕罗夫,此举震惊了国
《出版理论与实务研究(2022)》内容简介:《出版理论与实务研究2022》全书分为“出版工作”“选题策划”“书稿审读”“市场营销”
《Drupal高手建站技术手册》全面、系统地介绍了当今最流行的开源内容管理系统Drupal的建站方法,不仅由浅入深地介绍了Drupal的基
人工智能与未来社会发展 内容简介 《人工智能与未来社会发展》一书不仅有对人工智能研究的高度凝练与汇总,以及对人工智能前沿发展的探讨,还用大量篇幅着重阐释了人工智...
《从1到N:企业数字化生存指南》内容简介:随着新技术的发展成熟,所有的行业都会受到数字化的冲击,区别仅是程度和时间而已。在一
《2015年职称英语考试历年真题详解及全真模拟试卷A级(理工类)》内容简介:人事部组织的全国统一标准的职称英语考试划分为综合、理
论文排版实用教程-Word与LaTeX 本书特色 本书按照论文写作编排的顺序,先后以word、latex两种软件为例分别介绍论文的编排方法。第1章主要介绍有关论...
易飞、余刚、何凌、朱威编著的这本《GPRS网络信令实例详解》系统而全面地介绍了GPRS网络的系统架构以及以信令为主线的各接口协议
《有时孤独》内容简介:本书是CG画师MORNCOLOUR首本个人画集。本书围绕“孤独、爱、思念、时间”的主题展开,包含14个小故事,如花
Originallypublishedin1985,NeilPostmansgroundbreakingpolemicaboutthecorrosiveeffe...
《夏七酱的水彩小世界》内容简介:水彩画是用水调和透明颜料作画的一种绘画方法,简称水彩。水彩画是一种很有趣的作画方式,难点在