View Full Version : Dictionary script?
quixote
June 25th, 2004, 10:27 AM
The LUA Weather retrieval script has really piqued my interest. I was just wondering if the website needs to be designed for that sort of thing, or can you get info from any website? I have something in particular in mind, but this will be a real challenge and an ongoing project. I have downloaded a list of words (somewhere in the neighborhood of 300,000) from a dictionary. Unfortunately there is no definition with them, and I would like to create a file in csv (comma seperated variable) format in the form of word, definition. I would go about this by using a script to first take a word from the wordlist file (A), look up the definition on dictionary.com and then write the word and definition in the appropriate formatting in another file (B)before moving onto the next word from the word list (A). Of course all of the results would need to be appended to the main file (B). It would also need to be able to tell if there was no definition for the word and skip that word. Is this an unrealistic goal?
Grin Reaper
June 25th, 2004, 12:19 PM
hmm, i'm not sure how you are trying to use girder with this... unless you were wanting to use question OSD for a study type thing, or even just a geek quiz w/ some friends.
but on a more girder level, i'm wonderin about this to parse weather info from a different website so i can get the chance of rain and crap... i love weather.com's info.
quixote
June 25th, 2004, 12:27 PM
The dictionary in csv format is for a natural language processor or "AI" type program. I would like to help the developers with a definition "knowledge base" so that eventually I can use voice recognition and ask the program for definitions of words. Imagine reading a book and coming across a word that you are unsure of and then saying "COMPUTER! DEFINE FALLICIOUS!" and it instantly returns with "Certainly. The definition of fallicious is... blah blah blah".
Grin Reaper
June 25th, 2004, 01:36 PM
sounds like a cool project, good luck. but that means you gotta pronounce those hard words right too :P
Promixis
June 25th, 2004, 01:41 PM
sounds like a cool project, good luck. but that means you gotta pronounce those hard words right too :P
That's exactly what I was thinking :)
If you really want to do lua and programming I REALLY suggest you get the Lua Programming book (Amazon). It is VERY helpful. The above project is ideal for a language like Lua.
For an idea of what people use lua for goto http://www.lua.org/uses.html
quixote
June 25th, 2004, 01:49 PM
I promise I will, but I'm moving in 2 days, and with moving comes a lot of expenses. I'll be sure to get the book when I am back in my comfort zone.
quixote
June 26th, 2004, 05:27 PM
Some of the links on this forum lead to lua tutorials with syntax that doesn't work with the "Variable Manipulation Script". Could that be because of version differences? (4 or 5)
quixote
June 26th, 2004, 07:30 PM
by the way, on the issue of pronunciation, I'm sure that you could use something like Dragon naturally speaking and pair it up with a natural language processor program that can use COM objects to communicate with Girder. One that I have been following is Verbot (www.verbot.com). It does not have script ablility yet, but the developers seem to be as dedicated as the Girder team. I think that it could offer a whole new element to home automation. Verbot is capable of editing pronunciation.
Promixis
June 26th, 2004, 08:29 PM
Girder 4 will be lua 5 (due sometime later this year)
I have a pdf of a lua 4 manual. pm me if you want it.
quixote
June 30th, 2004, 12:13 AM
Please send me the PDF.
quixote
June 30th, 2004, 12:29 AM
OK, if no one can help with the dictionary script, there must be a way to get the tv listings. perhaps for only one channel and at the current time? I WILL figure out how to do this, but a little boost could help. anyone? please??? :)
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.