Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
how to remove the punctuation and no need words from paragraphs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kylin  
View profile  
 More options Nov 4, 8:44 am
Newsgroups: comp.lang.python
From: kylin <huili.s...@gmail.com>
Date: Tue, 3 Nov 2009 13:44:20 -0800 (PST)
Local: Wed, Nov 4 2009 8:44 am
Subject: how to remove the punctuation and no need words from paragraphs
I want to remove all the punctuation and no need words form a string
datasets for experiment.

I am new to python, please give me some clue and direction to write
this code.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Rebert  
View profile  
 More options Nov 4, 6:42 pm
Newsgroups: comp.lang.python
From: Chris Rebert <c...@rebertia.com>
Date: Tue, 3 Nov 2009 23:42:01 -0800
Local: Wed, Nov 4 2009 6:42 pm
Subject: Re: how to remove the punctuation and no need words from paragraphs

On Tue, Nov 3, 2009 at 1:44 PM, kylin <huili.s...@gmail.com> wrote:
> I want to remove all the punctuation and no need words form a string
> datasets for experiment.

> I am new to python, please give me some clue and direction to write
> this code.

The `replace` method of strings should get you pretty far (just
replace unwanted stuff with the empty string):
http://docs.python.org/library/stdtypes.html#str.replace

Cheers,
Chris
--
http://blog.rebertia.com


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google