By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,621 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,621 IT Pros & Developers. It's quick & easy.

related to python

P: n/a
develop a function called standardise_phrase to convert
the user's input to a standard form for subsequent processing. This
involves:
1. removing all inter-word punctuation, which for our purposes is
assumed to
consist only of commas (`,'), full stops (`.'), exclamation marks
(`!') or
question marks (`?');
2. stripping away any leading and trailing blank spaces; and
3. replacing words in the user's input with ELIZA's preferred
vocabulary.
how it is done ??
can anyone help me with it

Jun 27 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On May 21, 9:34*pm, "salil_reeves" <salil_ree...@yahoo.co.inwrote:
develop a function called standardise_phrase to convert
the user's input to a standard form for subsequent processing. This
involves:
1. removing all inter-word punctuation, which for our purposes is
assumed to
consist only of commas (`,'), full stops (`.'), exclamation marks
(`!') or
question marks (`?');
2. stripping away any leading and trailing blank spaces; and
3. replacing words in the user's input with ELIZA's preferred
vocabulary.
how it is done ??
can anyone help me with it
Jun 27 '08 #2

P: n/a
On May 21, 9:34*pm, "salil_reeves" <salil_ree...@yahoo.co.inwrote:
develop a function called standardise_phrase to convert
the user's input to a standard form for subsequent processing. This
involves:
1. removing all inter-word punctuation, which for our purposes is
assumed to
consist only of commas (`,'), full stops (`.'), exclamation marks
(`!') or
question marks (`?');
2. stripping away any leading and trailing blank spaces; and
3. replacing words in the user's input with ELIZA's preferred
vocabulary.
how it is done ??
can anyone help me with it
Yes, but I'm only as willing to put as much effort into my answer as
you do into your thread titles.

help(str)
Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.