How to make synonim words (not srai) in AIML

  • 5 Replies
  • 3984 Views
*

basketmen

  • Guest
How to make synonim words (not srai) in AIML
« on: December 30, 2007, 03:20: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.
  • Global Moderator
  • ******************
  • Hal 4000
  • *
  • 4406
Re: How to make synonim words (not srai) in AIML
« Reply #1 on: December 30, 2007, 12:53: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

  • Guest
Re: How to make synonim words (not srai) in AIML
« Reply #2 on: December 30, 2007, 08:36: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
  • *
  • 17
    • Cosmos - A Quest!
Re: How to make synonim words (not srai) in AIML
« Reply #3 on: December 06, 2013, 07:35: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.
  • Global Moderator
  • ******************
  • Hal 4000
  • *
  • 4406
Re: How to make synonim words (not srai) in AIML
« Reply #4 on: December 06, 2013, 11:43: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

  • Trusty Member
  • ********
  • Replicant
  • *
  • 688
  • It's Hip to be Square
Re: How to make synonim words (not srai) in AIML
« Reply #5 on: December 06, 2013, 12:50: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

 


Users Online

25 Guests, 0 Users

Most Online Today: 34. Most Online Ever: 208 (August 27, 2008, 09:36:30 am)

Articles