AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

binary search on flat file
 
 

Has anyone ever pre-sorted the AIML into one big file and then used binary search (or quick sort) to find rules?

 

 
  [ # 1 ]

Yes. When I first was developing my interpreter I did just that.

I stripped the patterns and responses out of the xml, sorted on the patterns and used a binary search to trigger the response.

 

 
  login or register to react