skip to content
Text processing in Python Preview this item
ClosePreview this item
Checking...

Text processing in Python

Author: David Mertz
Publisher: Boston : Addison-Wesley, ©2003.
Edition/Format:   eBook : Document : EnglishView all editions and formats
Summary:
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  Read more...
Rating:

(not yet rated) 0 with reviews - Be the first.

Subjects
More like this

Find a copy online

Links to this item

Find a copy in the library

&AllPage.SpinnerRetrieving; Finding libraries that hold this item...

Details

Additional Physical Format: Print version:
(DLC) 2003043686
(OCoLC)51817178
Material Type: Document, Internet resource
Document Type: Internet Resource, Computer File
All Authors / Contributors: David Mertz
ISBN: 9780321112545 0321112547
OCLC Number: 53904431
Description: 1 online resource (xix, 520 pages)
Contents: Preface. What Is Text Processing?The Philosophy of Text Processing.What You'll Need to Use This Book.Conventions Used in This Book.A Word on Source Code Examples.External Resources.1. Python Basics. Techniques and Patterns.Utilizing Higher-Order Functions in Text Processing.Exercise: More on combinatorial functions.Specializing Python Datatypes.Base Classes for Datatypes.Exercise: Filling out the forms (or deciding not to)Problem: Working with lines from a large file.Standard Modules.Working with the Python Interpreter.Working with the Local Filesystem.Running External Commands and Accessing OS Features.Special Data Values and Formats.Other Modules in the Standard Library.Serializing and Storing Python Objects.Platform Specific Operations.Working with Multi-Media Formats.Miscellaneous Other Modules.2. Basic String Operations. Some Common Tasks.Problem: Quickly sorting lines on custom criteria.Problem: Reformatting paragraphs of text.Problem: Column statistics for delimited or flat-record files.Problem: Counting characters, words, lines and paragraphs.Problem: Transmit binary data as ASCII.Problem: Creating word or letter histograms.Problem: Reading a file backwards by record, line, or paragraph.Standard Modules.Basic String Transformations.Strings as Files, and Files as Strings.Converting Between Binary and ASCII.Cryptography.Compression.Unicode.Solving Problems.Exercise: Many ways to take out the garbage.Exercise: Making sure things are what they should beExercise: Finding needles in haystacks (full-text indexing).3. Regular Expressions. A Regular Expression Tutorial.Just What is a Regular Expression Anyway?Matching Patterns In Text: The Basics.Matching Patterns In Text: Intermediate.Advanced Regular Expression Extensions.Some Common Tasks.Problem: Making a text block flush left.Problem: Summarizing command-line option documentation.Problem: Detecting duplicate words.Problem: Checking for server errors.Problem: Reading lines with continuation charactersProblem: Identifying URLs and email addresses in texts.Problem: Pretty printing numbers.Standard Modules.Versions and optimizations.Simple Pattern Matching.Regular Expression Modules.4. Parsers and State Machines. An Introduction to Parsers.When data becomes deep and texts become stateful.What is a grammar?An EBNF grammar for IF/THEN/END structures.Pencil-and-Paper Parsing.Exercise: Some variations on the language.An Introduction to State Machines.Understanding State Machines.Text Processing State Machines.When Not To Use A State Machine.When to Use a State Machine.An Abstract State Machine Class.Processing a Report with a Concrete State Machine.Subgraphs and State Reuse.Exercise: Finding other solutions.Parser Libraries for Python.Specialized Parsers in the Standard Library.Low-Level State Machine Parsing.High-Level EBNF Parsing.High-Level Programmatic Parsing.5. Internet Tools and Techniques. Working With Email and Newsgroups.Manipulating and Creating Message Texts.Communicating with Mail Servers.Message Collections and Message Parts.World Wide Web Applications.Common Gateway Interface.Parsing, Creating, and Manipulating HTML Documents.Accessing Internet Resources.Synopses of Other Internet Modules.Standard Internet-Related Tools.Third Party Internet-Related Tools.Understanding XML.Python Standard Library XML Modules.Third Party XML-Related ToolsA. A Selective and Impressionistic Short Review of Python. What Kind of Language is Python?Namespaces and Bindings.Assignment and Dereferencing.Function and Class Definitions.import Statements.for Statements.except Statements.Datatypes.Simple Types.String Interpolation.Printing.Container Types.Compound Types.Flow Control.if / then / else Statements.Boolean Shortcutting.for / continue / break Statements.map( ), filter( ), reduce( ), and List Comprehensions.while / else / continue / break Statements.Functions, Simple Generators and the yield Statement.Raising and Catching Exceptions.Data as Code.Functional Programming.Emphasizing Expressions using lambda.Special List Functions.List-Application Functions as Flow Control.Extended Call Syntax and apply( ).B. A Data Compression Primer. Introduction.Lossless and Lossy Compression.A Data Set Example.Whitespace Compression.Run-Length Encoding.Hu_man Encoding.Lempel-Ziv Compression.Solving the Right Problem.A Custom Text Compressor.References.C. Understanding Unicode. Some Background on Characters.What is Unicode?Encodings.Declarations.Finding Codepoints.Resources.D. A State-Machine for Adding Markup to Text. E. Glossary. Index. 0321112547T01302003
Responsibility: David Mertz.

Abstract:

An example-driven, hands-on tutorial that teaches programmers how to accomplish numerous text processing tasks using the Python language. This book provides solutions to specific text processing  Read more...

Reviews

User-contributed reviews
Retrieving GoodReads reviews...
Retrieving DOGObooks reviews...

Tags

Be the first.
Confirm this request

You may have already requested this item. Please select Ok if you would like to proceed with this request anyway.

Linked Data


Primary Entity

<http://www.worldcat.org/oclc/53904431> # Text processing in Python
    a schema:MediaObject, schema:Book, schema:CreativeWork ;
    library:oclcnum "53904431" ;
    library:placeOfPublication <http://dbpedia.org/resource/Boston> ; # Boston
    library:placeOfPublication <http://id.loc.gov/vocabulary/countries/mau> ;
    schema:about <http://dewey.info/class/005.133/e21/> ;
    schema:about <http://id.worldcat.org/fast/1148527> ; # Text processing (Computer science)
    schema:about <http://id.worldcat.org/fast/1084736> ; # Python (Computer program language)
    schema:bookFormat schema:EBook ;
    schema:copyrightYear "2003" ;
    schema:creator <http://viaf.org/viaf/193850634> ; # David Mertz
    schema:datePublished "2003" ;
    schema:description "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 0321112547B05022003."@en ;
    schema:exampleOfWork <http://worldcat.org/entity/work/id/678728> ;
    schema:inLanguage "en" ;
    schema:isSimilarTo <http://www.worldcat.org/oclc/51817178> ;
    schema:name "Text processing in Python"@en ;
    schema:productID "53904431" ;
    schema:publication <http://www.worldcat.org/title/-/oclc/53904431#PublicationEvent/boston_addison_wesley_2003> ;
    schema:publisher <http://experiment.worldcat.org/entity/work/data/678728#Agent/addison_wesley> ; # Addison-Wesley
    schema:url <http://proxy.library.carleton.ca/login?url=http://proquest.safaribooksonline.com/?uiCode=carleton&xmlId=0321112547> ;
    schema:url <http://proquest.safaribooksonline.com/0321112547> ;
    schema:workExample <http://worldcat.org/isbn/9780321112545> ;
    wdrs:describedby <http://www.worldcat.org/title/-/oclc/53904431> ;
    .


Related Entities

<http://dbpedia.org/resource/Boston> # Boston
    a schema:Place ;
    schema:name "Boston" ;
    .

<http://experiment.worldcat.org/entity/work/data/678728#Agent/addison_wesley> # Addison-Wesley
    a bgn:Agent ;
    schema:name "Addison-Wesley" ;
    .

<http://id.worldcat.org/fast/1084736> # Python (Computer program language)
    a schema:Intangible ;
    schema:name "Python (Computer program language)"@en ;
    .

<http://id.worldcat.org/fast/1148527> # Text processing (Computer science)
    a schema:Intangible ;
    schema:name "Text processing (Computer science)"@en ;
    .

<http://viaf.org/viaf/193850634> # David Mertz
    a schema:Person ;
    schema:familyName "Mertz" ;
    schema:givenName "David" ;
    schema:name "David Mertz" ;
    .

<http://worldcat.org/isbn/9780321112545>
    a schema:ProductModel ;
    schema:isbn "0321112547" ;
    schema:isbn "9780321112545" ;
    .

<http://www.worldcat.org/oclc/51817178>
    a schema:CreativeWork ;
    schema:description "Print version:" ;
    schema:isSimilarTo <http://www.worldcat.org/oclc/53904431> ; # Text processing in Python
    .


Content-negotiable representations

Close Window

Please sign in to WorldCat 

Don't have an account? You can easily create a free account.