« Return to Thread: Comma's in

Re: Comma's in <that>

by R. Vince :: Rate this Message:

Reply to Author | View in Thread

Though not part of the AIML spec (and I am mentioneing this solely for the
sake of some future coder faced with this problem, and how I resolved it), I
tag the tokens with Part of Speech Tags as a pre-stage as part of the
Normalizing process, before Normalizing. If the POS's on either side of the
comma are the same (e.g. Jack/NP ,/CC Jill/NP) I convert the comma into the
coordingating conjunction 'and' (thus producing Jack/NP and/CC Jill/NP).

On the other hand, if the POS's on either side of the comma are NOT the
same, I remove the comma (e.g. "In/CD the/DT end/NN ,/CC no/DT one/NN
cares/VBZ" thus becomes ("in/CD the/DT end/NN no/DT one/NN cares/VBZ").

Essentially, if you wanted, a semicolon could be treated the same way. But
again, this is off-spec. I simply have incorporated it because I am working
on parsing text via AIML as a front end to a larger system.

-Ralph Vince

----- Original Message -----
From: "mehri" <foreverlinux@...>
To: <alicebot-general@...>
Sent: Monday, January 29, 2007 11:20 PM
Subject: [alicebot-general] Comma's in <that>


>I ran into a particular issue.
>
> Some AIML files are written with comma's in <that> and
> some are not.
>
> For example,
>
> <that>PRESS 1 TO KNOW WHAT THE MOUSE EATS, AND TO
> DISCOVER ITS COLOUR</that>
>
> and some are:
>
> <that>PRESS 1 TO KNOW WHAT THE MOUSE EATS AND TO
> DISCOVER ITS COLOUR</that>
>
> I do believe that <that>'s shouldn't contain comma's
> or other punctuation.
>
> Is that true?
>
> I didn't see anywhere in the spec pointing to this
> specifically, unless I missed something again in the
> specification :-P
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> This is the alicebot-general mailing list
> Reply to alicebot-general@...
> Unsubscribe and change preferences at
> http://list.alicebot.org/mailman/listinfo/alicebot-general
> Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
> Learn to read at http://www.literacy.org/ 

_______________________________________________
This is the alicebot-general mailing list
Reply to alicebot-general@...
Unsubscribe and change preferences at http://list.alicebot.org/mailman/listinfo/alicebot-general
Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
Learn to read at http://www.literacy.org/

 « Return to Thread: Comma's in