samtecspg / articulate

A platform for building conversational interfaces with intelligent agents (chatbots)
http://spg.ai/projects/articulate/
Apache License 2.0
599 stars 159 forks source link

Regular expression based Keyword not working properly #1014

Closed Neo032020 closed 4 years ago

Neo032020 commented 4 years ago

Issues

Hi, as per our requirement we need to collect Date Of Birth of user and i used sys.spacy_date and sys.duckling_time but both was accepting only yyyy-mm-dd format but we need all possible date format, specially mm-dd-yyyy so i used Regular expression "/(0[1-9]|1[012])- \/.- \/.\d\d/" based Keyword but somehow it is not working for date 10-31-1991 etc., and it also not high-lighted saying when added some example, manually we have to do the same..

Please guide me for using regular expression based keyword..

thanks in advance

System Info. Capture1

we are using latest release of articulate Operating Environment: Version 80.0.3987.149 (Official Build) (64-bit) Version 0.31.1 Ubuntu 18.04 running on Chrome over the cloud on a AWS C5.2xlarge instance.

wrathagom commented 4 years ago

@dakavisa did you look at this one?

dakavisa commented 4 years ago

@Neo032020 I tested it using this regex. My keyword is of type regex and has the following value/synonym set with the regex expression:

image

If you still see an issue please send me the exact value of regex you are using for value/synonym

wrathagom commented 4 years ago

Let us know if that doesn't get you going.

Neo032020 commented 4 years ago

Sir, i was using regex "/(0[1-9]|1[012])- \/.- \/.\d\d/", because of user can say like "My date of birth is 04-30-1989" there will be no issue i will your regex but that also work for us.. please review Test Agent i shared in attachment.

please find the agent , i need your help regarding questions Question 1. when No Slot define for date it accept all possible format, but when we define sys.spacy_date then it accept only yyyy-mm-dd! else show error of mapper_parsing_exception. Question 2. when in define two separate keyword for Zip code[^\d{5}] and mobile number[^\d{10}] after entring ZipCode it is fine but when Mobile number entered then why it mix-up mobile into ZipCode Question 3. sys.spacy_person not Supporting Only First Name, it accept when first name and last name like "John Lee" but not "john lee" Question 4. I just need some thing like that ConfirmationAction it is working with Yes/No but not with their Synonyms unless we do not add at-least one Synonym into sayings

Please guide me if i should follow some specific flow for Articulate Development

Your product Articulate is nice but due to limited information available on web, like we did not know that in case of Regex we should put same Regex in values also! many important information you are providing us, thanks

RD1.TXT