Author Topic: How to make synonim words (not srai) in AIML  (Read 3867 times)

basketmen

How to make synonim words (not srai) in AIML
« on: December 30, 2007, 03:08:16 AM »


How to make synonim a word for the entire aiml, for example if someone write DOG its mean DOGGIE too

i dont want to create srai for each category in the entire aiml files that containing DOGGIE word like <srai>DOGGIE</srai> to forward to DOG meaning, there are hundreds of that words


i just want the system automatically recognize DOG its mean DOGGIE too


what code to do that??? lets share our knowledge, this is the most usefull information to save our time


Art

  • At the end of the game, the King and Pawn go into the same box.
  • *
  • Hal 4000
  • ******************
  • Posts: 4204
Re: How to make synonim words (not srai) in AIML
« Reply #1 on: December 30, 2007, 12:41:08 PM »


How to make synonim a word for the entire aiml, for example if someone write DOG its mean DOGGIE too

i dont want to create srai for each category in the entire aiml files that containing DOGGIE word like <srai>DOGGIE</srai> to forward to DOG meaning, there are hundreds of that words


i just want the system automatically recognize DOG its mean DOGGIE too


what code to do that??? lets share our knowledge, this is the most usefull information to save our time




It might be interesting as a personal project but the usage of the word doggie is practically nil.
In other words, if you're looking for the word meaning young dog it would puppy. The same
as cat would not be catty but kitten, and so on....

Common spoken English rarely uses such words and in the case of cattty, it implies an aire
of smugness regarding a group of people with attitudes and rude behavior.

Good luck if this is your goal.
In the world of AI, it's the thought that counts!

basketmen

Re: How to make synonim words (not srai) in AIML
« Reply #2 on: December 30, 2007, 08:24:51 PM »
yeah i believe there is way to do this

maybe not using code in aiml file, but how to recognize it from and to mysql database


if you know program to do that lets try and discuss it here guys

NickyBlue

  • *
  • Roomba
  • Posts: 17
    • Cosmos - A Quest!
Re: How to make synonim words (not srai) in AIML
« Reply #3 on: December 06, 2013, 07:23:06 AM »
Well try manipulating the in memory data structure or just simply tweak the AIML loader code a bit is one simple way or else you can go for ....smile.

as far as...

"It might be interesting as a personal project but the usage of the word doggie is practically nil.
In other words, if you're looking for the word meaning young dog it would puppy. The same
as cat would not be catty but kitten, and so on...."


is concern we humans talk too freely without caring much for any gramatical authenticity in day to day life. Try remember how many time you might have constructed a slang word by adding some suffix or prefix to a word to put your message across if you can't find right word in nick of time. So this whole Dog - Doogie thing don't apply in normal conversation with user. And the matter get more complicated (especially how AIML thing is dealt now) when we mixed more than one language in same sentences. We usually do here in between English-Hindi or my native state languages. You folks also must have some second language i.e Spanish? No? or maybe just slanging in english itself. But I think that out of context for your bot in present state. But tweaking Loder code a bit might solve problem in far more easier way than anything else I suppose. But its just my Idea! I can't say that I know AIML in real sense but it might of help...

Art

  • At the end of the game, the King and Pawn go into the same box.
  • *
  • Hal 4000
  • ******************
  • Posts: 4204
Re: How to make synonim words (not srai) in AIML
« Reply #4 on: December 06, 2013, 11:31:31 AM »
For the vast majority of American born people, our language is English. In school most are forced / required to take a second language choice like German, Russian, Spanish.... This language is usually taught for a 2 year period.

Most will never use or have an opportunity to use that learned language so that knowledge simply fades away.

English is quite difficult for a non-American born person to learn yet some manage to do a pretty good job of doing so. Even having said that, an American born person can quickly spot a foreigner through his or her speech. There are slight nuances and wording that catch our ear and indicate a person from a foreign country. Much like, I suppose, an American would "stand out" in a foreign country using high-school French or Russian, etc.

Language is a gateway and also a barrier at the same time. One day, we'll all wear language translators (maybe implants) that instantly decode non-native speech no matter where you live!

Who knows....
In the world of AI, it's the thought that counts!

squarebear

  • *
  • Replicant
  • ********
  • Posts: 681
  • It's Hip to be Square
Re: How to make synonim words (not srai) in AIML
« Reply #5 on: December 06, 2013, 12:38:44 PM »
Since this was posted 6 years ago, Progam AB has been developed. In this, you can edit the "normal.txt" file to include extra substitutions such as doggie for dog.
Feeling Chatty?
www.mitsuku.com

 

Welcome

Please login or register.



Login with username, password and session length
A.eye
by keghn (General AI Discussion)
March 27, 2017, 09:31:23 PM
Rivescript not working as expected- solved
by brty21 (AI Programming)
March 27, 2017, 10:22:23 AM
Way before I attempt VR let me ask some questions.
by LOCKSUIT (General Project Discussion)
March 27, 2017, 05:18:49 AM
Hello All
by Art (New Users Please Post Here)
March 25, 2017, 07:50:49 PM
My DeepMind Generation
by Freddy (General Chat)
March 25, 2017, 04:16:32 AM
mini a.i puzzles
by yotamarker (General AI Discussion)
March 23, 2017, 08:12:36 PM
Solid proof why Automation is incredible.
by Art (General AI Discussion)
March 23, 2017, 05:17:09 PM
Hello all
by 8pla.net (New Users Please Post Here)
March 22, 2017, 06:06:52 PM

Users Online

20 Guests, 1 User
Users active in past 15 minutes:
kei10
[Trusty Member]

Most Online Today: 47. Most Online Ever: 208 (August 27, 2008, 08:24:30 AM)

Articles