by knodi123 · 3y ago · 0 comments
It was actually a little depressing - it made me realize that some people just have a "something" that I'm not going to get through hard work or whatnot.
*edit: ah, found it. https://norvig.com/spell-correct.html
I had the same thought - read the URL and then said "Oh well that's Peter Norvig he's just weird in a cool way"
I don't think saying he was "lucky" is discrediting him - simply because there's many people who got 'lucky' but didn't push themselves to fully capitalize on it the way he did.
Basically he's both "lucky" but also extremely driven and uses it to his fullest potential.
For my true response that probably isn't as popular - he may have an amazing work ethic but that's also just coming from how he was raised, so it's still luck, the same person born in a different environment wouldn't have done the same things - both nature and nurture are external forces
Some might be motivated knowing the only thing that separates them from greatness is luck, but more often I saw students feel defeated.
People get weirdly defensive about luck being a major factor in their success, but it always is. It doesn't mean you didn't work hard, it doesn't mean that your decisions didn't contribute to your success. It means that, if you were born a little bit less smart, you would have achieved less. And if you were born in North Korea or medieval Europe in the peasant underclass, you would probably have achieved nothing of note and may have died of the plague before reaching adulthood.
I'd estimate that just the sheer luck to be born in a wealthy, free country without debilitating handicaps in the late 20th century or early 21st century already puts you in something like the top 1% lucky people in human history.
That 5% luck probably got him an extra 10-20% further than anyone else. However, in a room with equally disciplined individuals you wouldn't be able to discern the lucky from the hard working.
why?
Until that day comes, I keep working at it.
So in this case, the special "something" he has is quite literally the amount of hard work he put in to learn this stuff. And if you take this opportunity to learn about edit distance, you'll be one step closer to that special someone you want to be.
"To deal with hyper-planes in a 14-dimensional space, visualize a 3-D space and say 'fourteen' to yourself very loudly. Everyone does it."
– Geoffrey Hinton, A geometrical view of perceptrons
Well, you actually can come up with Norvig's spellchecker very easily with a similar trick. Just tell yourself: to deal with a really hard problem, just argmax with an okayish heuristic. Everyone does it.
Solutions like this seem impossibly elegant because they tolerate a whole lot of error, but they are actually extremely obvious when you tolerate error.
[0] - https://web.archive.org/web/20070410053746/http://norvig.com...
[1] - https://web.archive.org/web/20150906100448/http://www.norvig... : ctrl+f "Update"
I'm sure there's better stuff now.
Also it's possible to better ranks candidates to fix typos by taking into account the layout of the keyboard (e.g. on a QWERTY keyboard is you see "wery" it is, despite having an edit distance of 1, highly unlikely the person typing meant to type "very". "weary" is much more likely). So just sorting by edit distance and then suggesting the most common word often doesn't result in the best candidate being shown first.
And then context. Ah, context. I type this and my browser isn't aware I'm talking about algorithms and not only says "metaphone" is incorrect but suggests "megaphone".
So... The matter still isn't settled if you ask me.
This code is very simple, very short, very unoptimized and done in a few hours, free solo. The kind of code the article could have linked as an example of how simple it is now to write a spellchecker, in fact it explicitly talks about how you can do it in a few lines of Python, i.e. this.
What the article is about is complex, highly optimized code that took months to do, because computers at the time didn't even have enough space to store the complete word list uncompressed, neither in storage nor in memory, and even with compression, you had to be clever.
One potential answer is indeed the recent developments in AI (generative stuff like GPT & stable diffusion etc).
That's kind of like watching someone use Red-Black Trees and assuming that they intuited them out of thin air. It's just remembering a basic algorithm that would be familiar to anyone in his particular field.
Because it's based on Wikipedia, it can correct proper names too. It's very extensible: by changing the error model, you can get fuzzy auto-complete that can look at "Shwarz" and suggest "Schwarzenegger" (even though you missed the 'c'). You can extend it to looking at multiple words instead of just letters, for correcting common word-use issues as well.
You can find it with a web search.
(His version didn't use a trie, because Python's built-in dicts are much more efficient than a trie in Python, even with the extra redundancy that a trie eliminates.)
I recently realised I've been missing my "something" for a while.. ya I've not had a dopamine free moment since doom scrolling became a thing.
Not comparing somethings, I probably couldn't write a spell checker much less a beautiful one, but my creative juices are much less clogged up since allowing myself to get bored.
I believe it's being able to combine a learned skillset with raw creativity (boredom) that gives a person that something you refer to.
I often avoid things because I think they'll be hard, but then discover that they turn out to be easy. "Why didn't anyone tell me how easy this was! I could have done this ages ago!" was a running theme for me for a good while.
Of course, sometimes things are actually harder than you thought. But they're still doable! Whereas I have this cognitive bias where "difficult" is (emotionally) equivalent to "impossible", which is just really unfortunate. I'm sort of starting to see through that, that everything's made of atoms, and once you break a task down far enough, the individual steps are trivial.
So yes he's very talented, but if you study enough computer science, you can also do it. Or don't. It's totally fine to be interested in other parts of engineering instead.
The idea was to set up an auto-reply to my email that looked automated, but surely couldn't be because it messed up the sender's name. Not nearly as clever as Peter Norvig's program and even less useful.
I'd say the bias toward common American names is a bug, but given that the goal of the project is to be obnoxious it's probably a feature.
The hard part was fitting the dictionary in memory, and then searching all possible strings 1 and 2 edits away from the input to find the candidates.
The progress is that we don't have to care about storing 2.5MBytes (they ran on machines with 640k!) in RAM, or searching it 100,000 times (e.g. edits2('something')).
Try fitting GIFs, Videos, images + spellchecker & autocorrection into that process
I challenge this, especially the "by definition" part. It depends on how many skills you recognize.
The chance of being the best artist (to the extent that such a statement is reasonable) might be one in eight billion.
The chance of being the best automotive sharpie artist is, similarly, one in eight billion.
The chance of being the best artist /of some particular skill set/ is, then, much higher -- if you recognize only a few thousand distinct skills here, you're already at one in a million.
Then realize that those who are likely to be surprised that there are better programmers than them are /not/ likely to be surprised that there are better artists than them. So we're assessing across all skills.
The chance of being on the far right of the bell curve of a specific skill is pretty small. The chance of being on the far right of the bell curve for /any/ skill is quite high, with only eight billion people around.
Find what you do better than anyone else, embrace it, and enjoy it.
Let's be real, in 5-6 hours he designed a very nice, simple algorithm to produce likely words from a dictionary based on frequency analysis, and produced 30 lines of Python code implementing it. A lot of engineers today could have done this.
The "specialness" was that he did it on his own time and enjoyed it.
There was an xkcd relevant here about enjoying Python: https://xkcd.com/353/
Complexity is the product of lesser stars in the firmament.
You can do similar things in domains where you’re so interested you can’t think of doing anything else.
Very few of us actually want to be the guy accumulating accolades for their engineering, we want to take flights to things we actually want to be doing, not opening our laptop once or even bringing it
Everything in between is a coping mechanism