Board index » delphi » program problem with tp 7.0

program problem with tp 7.0

i would like to do a program that do :

when you enter a string, it can respond you normally like human (can do
sentences by itself, can have a judgement), "understand" if the sentence is
a joke or serious, philosophic, question needed answer(s), ...

 all must be done in tp because i don't want to pay anything to dbase or
access or else.

thanks beforehand

 

Re:program problem with tp 7.0


On Tue, 16 Apr 2002 06:56:52 +0200, "Jacque Valrian"

Quote
<jac...@wanadoo.be> wrote:
>i would like to do a program that do :

>when you enter a string, it can respond you normally like human (can do
>sentences by itself, can have a judgement), "understand" if the sentence is
>a joke or serious, philosophic, question needed answer(s), ...

Doing that in the 64KB segments of TP 7 will be difficult.

Re:program problem with tp 7.0


Quote
Jan Philips wrote:

> >when you enter a string, it can respond you normally like human (can do
> >sentences by itself, can have a judgement), "understand" if the sentence is
> >a joke or serious, philosophic, question needed answer(s), ...

> Doing that in the 64KB segments of TP 7 will be difficult.

Not to mention the knowledge of linguistics necessary to pull it
off convincingly.

trane
--
//------------------------------------------------------------
//   Trane Francks   tr...@gol.com   Tokyo, Japan
//   Practice random kindness and senseless acts of beauty.
//   http://artists.mp3s.com/artists/348/trane_francks.html

Re:program problem with tp 7.0


There are programs like this, just search for "Eliza" with google. This
should give some links...

Greetings

Markus

Re:program problem with tp 7.0


On Tue, 16 Apr 2002 11:43:59 +0200, Markus Humm

Quote
<markus.h...@freenet.de> wrote:
>There are programs like this, just search for "Eliza" with google. This
>should give some links...

Eliza just pretends to do it.

Re:program problem with tp 7.0


"Jacque Valrian" <jac...@wanadoo.be> schreef in bericht
news:a9gbaj$1ejfs$1@sinclair.be.wanadoo.com...

Quote
> i would like to do a program that do :

> when you enter a string, it can respond you normally like human (can do
> sentences by itself, can have a judgement), "understand" if the
sentence is
> a joke or serious, philosophic, question needed answer(s), ...

>  all must be done in tp because i don't want to pay anything to dbase
or
> access or else.

> thanks beforehand

uses crt;
const nofanswers=16;
      answers:array[1..nofanswers]of string=
     ('Oh really',
       'I''m not sure I understand that completely',
       'Please tell me more',
       'Hmm',
       'huh',
       'well?',
       'so?',
       'and..',
       'sure',
       'ahhh'
       'I see'
       'well?'
       'does it have anything to do with your youth'
       'sounds like something for Yerry Springer'
        'and how does that make you feel'
        'and why is that?'
       );
   useranswer:string='';
begin
  randomize;
  writeln('How do you feel today?');
  while useranswer<>'bye' do
  begin
    readln(Useranswer);
    writeln(answers[random(nofanswers)+1])
  end;
  writeln('Ok bye.')
end.

Let turn this into a game. Who can give here the highest number of
worthless always appliacable answers that indicate the average level of a
psychiatrist.

Femme

Re:program problem with tp 7.0


"Markus Humm" <markus.h...@freenet.de> schreef in bericht
news:3CBBF25F.5010008@freenet.de...

Quote
> There are programs like this, just search for "Eliza" with google. This
> should give some links...

> Greetings

> Markus

Wasn't that written in LISP?

Femme

Re:program problem with tp 7.0


"Femme Verbeek" <fv[at]{*word*104}jet[dot]nl> schreef in bericht
news:ubok5qe9ovqmcb@corp.supernews.com...

Quote

> "Markus Humm" <markus.h...@freenet.de> schreef in bericht
> news:3CBBF25F.5010008@freenet.de...
> > There are programs like this, just search for "Eliza" with google.
This
> > should give some links...

> > Greetings

> > Markus

> Wasn't that written in LISP?

> Femme

I found a pascal version of it on the net.

http://cs.boisestate.edu/~amit/teaching/125/programs/fun/therapist/el...

You need the Eliza.pas and the response.dat.

Femme

Re:program problem with tp 7.0


Quote
> Wasn't that written in LISP?

May be, but Eliza comes from Eliza Doolittle (I think), a character from
a George Bernhard Shaw play. It is nowdays a synonym for this type of
program.

Markus

Other Threads