To RE or not to RE - parsing text in Python

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,380
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 27, 2008

PyCon 2008 Talk by
Anna M Ravenscroft (Stanford University)

Text parsing - breaking up text into smaller parts for processing - is a common task for programmers. Whether you're tokenizing a sentence for Part of Speech tagging in computational linguistics, automatically checking logs for specific errors, or doing Hidden Markov Models to output Emily Dickinson-style poems, chances are, at some point in your programming, you'll need to do text parsing.

One of the most common methods of doing text parsing uses a specialized pattern-recognition language called regular expressions. Regular expressions (REs) can be intimidating to a new programmer; they may try to avoid REs at all costs. Others will turn to REs out of unfamiliarity with the wonders of Python native string manipulation. This talk will focus on the basics:

* when and how can you use Python's native string methods,
* when to consider REs, and
* how to do simple text parsing.

Slides available at http://us.pycon.org/2008/conference/schedule/event/63/

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • next time you can put the fixed camera in an other room... it's the same thing...

  • The slides are in the description in case you can't read the ones in the video.

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • @check537 thanks for spell checking  :)

  • @andreabisio *another

  • Great! thank you very much. This helped me a lot in my work.

  • great !

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more