Friday, January 14, 2011
Multple sentence answer problem
There are a couple of things I'm going to try.
1. Edit the AIML to remove full stops in the tag (except for just one at the end). This will produce some grammatical/punctuation errors. But I'm willing to live with comma splices and poorly used dashes if it simplifies the structure and creates more meaningful dialogue.
2. I could (maybe) add some script to the .swf that looks for a full stop in a string of text and stops 'reading' at that point. This would mean that in the example - I love Star Trek. My favorite series is 'Voyager' - only the first sentence would be passed to the other bot. This is technically possible but it may dumb-down the responses taking the colour out of the language. Particularly if the second sentence is an ironic statement e.g. I love Star Trek. Not!
3. A simpler fix I will try whilst contemplating the two above is to add a simple variable to count the number of interchanges between to two bot. Then, when there have been say 10 interchanges the 'stopMe' function will be fired automatically.
4. A more sophisticated version of this is have a generic 'exit' interchange fire after a fixed number of interchanges. I'm thinking here of Pinky and the Brain.
Pinky - What are we going to do tomorrow night Brain?
Brain - Same thing we do every night Pinky - try to take over the world!
More to come.
1. Edit the AIML to remove full stops in the tag (except for just one at the end). This will produce some grammatical/punctuation errors. But I'm willing to live with comma splices and poorly used dashes if it simplifies the structure and creates more meaningful dialogue.
2. I could (maybe) add some script to the .swf that looks for a full stop in a string of text and stops 'reading' at that point. This would mean that in the example - I love Star Trek. My favorite series is 'Voyager' - only the first sentence would be passed to the other bot. This is technically possible but it may dumb-down the responses taking the colour out of the language. Particularly if the second sentence is an ironic statement e.g. I love Star Trek. Not!
3. A simpler fix I will try whilst contemplating the two above is to add a simple variable to count the number of interchanges between to two bot. Then, when there have been say 10 interchanges the 'stopMe' function will be fired automatically.
4. A more sophisticated version of this is have a generic 'exit' interchange fire after a fixed number of interchanges. I'm thinking here of Pinky and the Brain.
Pinky - What are we going to do tomorrow night Brain?
Brain - Same thing we do every night Pinky - try to take over the world!
More to come.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment