471,896 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,896 software developers and data experts.

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 790
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 YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.