jokke Posted July 27, 2007 Share Posted July 27, 2007 Hiya, iwe got a list with 1200 strings and id like a search function where i would be able to search without writing 100% right. anyone know of anything like this ? UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 27, 2007 Share Posted July 27, 2007 Hiya, iwe got a list with 1200 strings and id like a search function where i would be able to search without writing 100% right.anyone know of anything like this ?By "search without writing 100% right", I assume you mean in-exact matches. To get a computer to do that, you have to define what you mean by "in-exact" so you can implement it in comparison rules. It will get very complicated very quickly if, for instance you want phonetic matching ("phone" ~= "fone"). Google search does something like that if you search for "fone" it will prompt you "Did you mean to search for 'phone'?" But that is very heavy weight programming not to be taken on lightly with a scripting language like AutoIt. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Toady Posted July 27, 2007 Share Posted July 27, 2007 I think your talking about binary search, where not every one of the 1200 string you got are compared. This requires the strings to be sorted alphabetically for it to work. Look at _ArrayBinarySearch() in Array.au3. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
jvanegmond Posted July 27, 2007 Share Posted July 27, 2007 (edited) Google search does something like that if you search for "fone" it will prompt you "Did you mean to search for 'phone'?" But that is very heavy weight programming not to be taken on lightly with a scripting language like AutoIt.Actually, that is not very difficult. I once saw on tv how do they do that, they store a list of all search queries and in what order they have been done. Once certain combinations are more common after each other, such as first 'fone' and then 'phone' in correct spelling it takes the word 'fone' up to mean 'phone.A very straight forward algorithm that can be done in AutoIt, although requires quite a heavy computer to process the amount of queries Google gets. Edit: On topic, StringRegExp might be abled to do what you want. Use . as a wildcard in the pattern. Edited July 27, 2007 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 27, 2007 Share Posted July 27, 2007 Actually, that is not very difficult. I once saw on tv how do they do that, they store a list of all search queries and in what order they have been done. Once certain combinations are more common after each other, such as first 'fone' and then 'phone' in correct spelling it takes the word 'fone' up to mean 'phone.A very straight forward algorithm that can be done in AutoIt, although requires quite a heavy computer to process the amount of queries Google gets. Edit: On topic, StringRegExp might be abled to do what you want. Use . as a wildcard in the pattern.There's the rub though. Millions of people making brazillions of searches give the statistics an input to detect what THE HUMANS did to indicate matches. In your example, it was a statistically significant number of PEOPLE doing something that taught the system the association. Now tell me how you would implement that associations (and all others) from the start in your code? The OP is talking (unless I misunderstood him, which is very possible) about writing some code now, that will do these searches now, without waiting for millions of people to "teach" it what to look for. That means hard coding near-match logic in the script.The other problem remains: As sweet as AutoIt is, it can't possibly be the right choice to implement language analysis this complicated.All this opinionating is moot, of course, if the OP meant something much more modest in scope. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
jvanegmond Posted July 27, 2007 Share Posted July 27, 2007 There's the rub though. Millions of people making brazillions of searches give the statistics an input to detect what THE HUMANS did to indicate matches. In your example, it was a statistically significant number of PEOPLE doing something that taught the system the association. Now tell me how you would implement that associations (and all others) from the start in your code? The OP is talking (unless I misunderstood him, which is very possible) about writing some code now, that will do these searches now, without waiting for millions of people to "teach" it what to look for. That means hard coding near-match logic in the script.The other problem remains: As sweet as AutoIt is, it can't possibly be the right choice to implement language analysis this complicated.All this opinionating is moot, of course, if the OP meant something much more modest in scope. I stand by my point. The algorithm used still is not very complicated.By the way, over 50% you said, I already stated in my last post. Thanks for repeating. github.com/jvanegmond Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 27, 2007 Share Posted July 27, 2007 I stand by my point. The algorithm used still is not very complicated.By the way, over 50% you said, I already stated in my last post. Thanks for repeating.Yes, you win... sigh... I'll admit your sig is much more annoying! Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
jvanegmond Posted July 27, 2007 Share Posted July 27, 2007 Yes, you win... sigh... I'll admit your sig is much more annoying! I do my best. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now