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

Basic pattern help
 
 

This is very strange.  Maybe I am missing something obvious.

> :testpattern (a man) a man
Matched

> :testpattern (~male) man
Matched

>  :testpattern (a ~male) a man
Failed

How should I write a pattern that handles “a man”, “a guy”, “a male”, etc?

Thanks

 

 

 
  [ # 1 ]

I expect I’ll have to upload a new version.  I had a problem with the word A (in caps).
You can see what happens if you do the following:

:trace all
:testpattern (a ~male) a man

that should show you debug information about the failure. I expect the system converted your input “a man” into “A man” and then couldnt match it.

New version in the next day or two.

 

 
  [ # 2 ]

Thanks. Here is the result of the trace:

Original Input:  a man
Tokenized Input: a man
Spellchecked Input: A_Man

Looks like it is spell checked to capital.

 

 
  [ # 3 ]

Correct. My copy doesn’t, but that’s because a couple of days ago I fixed this.

 

 
  [ # 4 ]

While my copy will get uploaded and fix this eventually, you don’t have to wait. you can patch your dictionary as follows:


1. delete DICTIONARY/dict.bin - this is the binary fast-loading form of the dictionary. In its absence the system will read the text files and reconstruct it.

2. open DICTIONARY/a.txt . Search for   space uppercase-A space open-paren   ” A (”  and then erase the entry you find. This removes the uppercase A word conflict.

3. run chatscript. That problem is gone.

 

 
  [ # 5 ]

Thank you.  I will try this out.

 

 
  login or register to react