| View previous topic :: View next topic |
| Author |
Message |
Mitch38 ChatterBot

Joined: 12 Aug 2009 Posts: 38 Location: San Diego, CA. USA
|
Posted: Wed Dec 09, 2009 4:23 am Post subject: Bulk Synonym Import! |
|
|
Seriously. Magic could be had if you could import databases into the synonym file. _________________ Don't worry, it will all be over soon... |
|
| Back to top |
|
 |
JonC MasterBot

Joined: 02 Apr 2008 Posts: 340 Location: Leicestershire, Great Britain
|
Posted: Thu Jan 14, 2010 9:56 pm Post subject: Importing synonyms |
|
|
The actual importation of synonyms would be no problem, provided that the data was presented in CSV format.
the synonyms could be set up a CSV file (one row per synonym group eg lady,woman,girl) and each row of a CSV file can be stored as a separate vars-variable.
A modification to my MatchOr VCM function would then allow you to match a root word (eg lady) to any synonym and a bit of tweaking to by CSV.GetElement function would allow you to select a random(ish) example from the whole row.
If you want to pursue this Mitch, take it to the Scripting forum (preferably under my "CSV files - at last" thread and I'll suggest how it could be done.
ps I said "random(ish)" because there are some problems with Verbot-generated random numbers. Main one is you can't do it very frequently without getting the same one back each time!
On other hand I have a VCM function for this too. |
|
| Back to top |
|
 |
|