469,275 Members | 1,852 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

related to python

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
2 760
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
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.

Similar topics

2 posts views Thread by Michael Teter | last post: by
reply views Thread by praba kar | last post: by
4 posts views Thread by Elmo Mäntynen | last post: by
4 posts views Thread by Sathyaish | last post: by
reply views Thread by Michael Pittaro | last post: by
3 posts views Thread by Dennis | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.