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
《新编Word/Excel/PPT商务办公应用大全》内容简介:作为一款常用的集成办公软件,它具有操作方便和容易上手等特点。然而要想真正掌
本书用Python语言来讲解算法的分析和设计。本书主要关注经典的算法,但同时会为读者理解基本算法问题和解决问题打下很好的基础。
图像特征提取与检索技术 本书特色 本书对基于内容的图像检索(content-based image retrieval,cbir)技术的基本原理、图像特征提取与...
《ADOBE AFTER EFFECTS CC标准培训教材》内容简介:为了让读者系统、快速地掌握Adobe After Effects CC 软件,本书内容编排...
手游与社交游戏是一个生机勃勃、令人兴奋的产业,飞速发展的互联网与相关技术,成就了一个又一个广为流传、收益丰厚的游戏产品。
《Kubernetes微服务实战》内容简介:本书正是你一直期待的那本书。本书包罗万象,会介绍如何开发微服务并将其部署在Kubernetes平台
「平面設計是帶給人夢想的幸福工作。從事平面設計,除了需要一點幽默和感性之外,擁有平面設計的基本知識更是必備條件。」本書收
The Adobe Illustrator CS3 WOW!BOOK(含光盘) 本书特色 源自100位全球**illustrator艺术大师的技巧、经验和技术。...
《邓小平讲话实录:演讲卷》内容简介:《邓小平讲话实录》记述了邓小平从革命战争年代到社会主义建设中发挥的重要作用,他的历次讲
《读故事学编程:Python王国历险记》内容简介:这是一本故事书,也是一本编程书。小男孩派森无意中闯入神秘国度—Python王国,恰好
Office 2003中文版教程 内容简介 本书的目的是使读者学会使用Office 2003中文版软件,提高学习与工作效率。 本书详细讲解了0ffice 200...
《自由人》内容简介:自由无价。而现在,互联网给我们带来了真正的自由。淘宝给了谁自由?由大学生、家庭主妇、城市无业者、农民们
HarnessthepowerofJavaServerFacestocreateyourownserver-sideuserinterfacesfortheWe...
《销售团队没业绩,如何激励?》内容简介:企业生产的产品或服务能够被用户认可,销售团队起着至关重要的作用;同时销售团队的业绩
《幸福的重建:回归疗法入门(第2版)》内容简介:人人都试图追寻幸福,却往往被各种烦恼所羁绊,在人生中迷失方向,忘记初心。著名
Thetwomainthemesofthisbook,logicandcomplexity,arebothessentialforunderstandingth...
YourexpertguidetoimplementingScalableVectorGraphics(SVG)Divein-andquicklylearnho...
《财务共享的智能化升级:业财税一体化的深度融合》内容简介:财务共享是数字技术和管理变革的共同产物,是解决企业规模不断扩大的
《简笔画5000例,一本就够(动物篇)》内容简介:简笔画几乎是每个人孩提时代绘画生涯的开始。简单的线条,可爱的形状,总是能释放
GPS卫星导航定位原理与方法 本书特色 本书是我国**本GPS教科书《全球定位系统原理及其应用》(刘基余主编, 北京测绘出版社于1993年10月**次出版发行)...