related to python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • salil_reeves

    related to python

    develop a function called standardise_phr ase 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

  • Dan Bishop

    #2
    Re: related to python

    On May 21, 9:34 pm, "salil_reev es" <salil_ree...@y ahoo.co.inwrote :
    develop a function called standardise_phr ase 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

    Comment

    • Dan Bishop

      #3
      Re: related to python

      On May 21, 9:34 pm, "salil_reev es" <salil_ree...@y ahoo.co.inwrote :
      develop a function called standardise_phr ase 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)

      Comment

      Working...