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

AIML <map> how to match accents ?
 
 

Hello,

I’m writing in AIML for a french chatbot, and i’ve problem with accents. All mapped words work well except when i use accent . By exemple ” élu ” can’t be found . My map\*.txt files are encoded to UTF-8 .

Is there a way to make it work please ?

Thx

 

 
  [ # 1 ]

Are you normalising é by accident? What happens when you amend this in your map to just elu

 

 
  [ # 2 ]

Hello, thx for answer :D
No i didn’t normalise . If i map “elu” or any word without accent, it work well .
I don’t know if that help, but this <map> tag is in a <oob> tag . I’m using the API from the site wikidata .
So when i ask to my chatbot ” what is the birthdate of somebody ” , it go to wikidata to get the datas. In my aiml file, the pattern is “what is the * of * ” to be able to get different properties for different people . The problem is that wikidata use IDs for it’s properties and it’s where i need <map>.

In this exemple, “birthdate” must be replaced by P569 Before query the website . That work but not with the properties that have an accent :(

Thx for your help

PS : I found a way do made it work by doing the mapping and query wikidata in python and return this to aiml using “say * ” where the star is what python returned . But of course it could be easier to use the <map> tag of AIML !

 

 
  login or register to react