TailsSena Posted March 2, 2012 Report Share Posted March 2, 2012 So, I've begun work on an MMF2 kind of... Cleverbot, due to my love of Robotics. But, how should I go about it, I've rigged it to respond to "Hello.", but it won't. Help? Text responsive ai.mfa Link to comment Share on other sites More sharing options...
USC Posted March 2, 2012 Report Share Posted March 2, 2012 Pressing Enter clears Edit Box before Edit Box 2 can evaluate it (try removing the 'respond loop' condition and see). My suggestion would be to add to the 'Press Enter' event a command that sets a String equal to the value of the Edit Box, then use the string for AI comparisons. Hope that helps. Link to comment Share on other sites More sharing options...
TailsSena Posted March 4, 2012 Author Report Share Posted March 4, 2012 Thanks. So, I'm trying to use a String Parser now so it can evaluate each sentance word after word. But... How do I set it to use spaces as parcers? Link to comment Share on other sites More sharing options...
DimensionWarped Posted March 4, 2012 Report Share Posted March 4, 2012 Why the FUCK would you want to use MMF for something like this? You do realize that conversational systems are extremely complicated and require a rich understanding of language and data structures to create right? To the best of my knowledge, MMF doesn't even have good tools for parsing strings and implementing most advanced data structures is actually very difficult. This blows my mind. Link to comment Share on other sites More sharing options...
TailsSena Posted March 4, 2012 Author Report Share Posted March 4, 2012 Because I know it's possible. Once I figure out this parsing thing, it's just groups and groups and groups and tedious work. But, I wanna do it. Just because I can! Link to comment Share on other sites More sharing options...
USC Posted March 4, 2012 Report Share Posted March 4, 2012 It's been a long time since I've tried using the String Parser, but there should be an option to define the delimiter (possibly on the object itself in the Play Field); if not, I guess you could make a routine that takes in the sentence, then goes through the string and checks each character to see if it's a space. As a small recommendation, I'd suggest converting each sentence into either all UPPERCASE or lowercase; this will make your life much easier as far as figuring out what the sentence should mean. Link to comment Share on other sites More sharing options...
Recommended Posts