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..

Handling new words
 
 

Hi, I need your help here:

I have a rule which takes username from the user, it calls a service and gets the user details.

u: ([tell me about ] _*1 >) ^keep() ^repeat() $$tmp = _0
    $$client_name = $$tmp
    $$url = ^”\“http://localhost:8090/emp/emp_details/$$tmp\”“

I print the results if the user is matched else i give a msg “user not found”.
   

I am facing the following issue:
- if the username is not present in the dictionary, the rule is not correctly matched & it goes to a different topic.
- sometimes the closest word is matched and the user details are printed.

I want to give the details of the user, if the results are matched else i want to give msg “user not found”. How should handle this unseen words?


 

 
  [ # 1 ]

The rule should be matched, but $$tmp will not be correct because you are setting the canonical form which is unknown-word. You need to do $$tmp = ‘_0   (the original form) and more likely $$tmp = ^original(_0)  because the system might have spell-checked your name into another word.

 

 
  login or register to react
‹‹ Parsing List      New line ››