Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thoughts on clustering #1

Open
wooters opened this issue Jan 31, 2019 · 1 comment
Open

thoughts on clustering #1

wooters opened this issue Jan 31, 2019 · 1 comment

Comments

@wooters
Copy link

wooters commented Jan 31, 2019

This is a cool project. Thanks for making this public!

I was looking over your clustering notebook and thought of a couple of things that might help to improve the distance calculation between candidate words.

  • Include contextual information (e.g. previous word)
  • In addition to Levenshtein distance, consider adding some form of a Soundex-based distance metric. (Or maybe double metaphone instead of Soundex.)

Anyway, just a couple of quick thoughts. I apologize if you've already considered these things. I hate to presume, but I didn't see them mentioned in your notebook so I thought I'd throw them out there.

Cheers,
Chuck

@colinmorris
Copy link
Owner

Thanks for bringing this up. I was totally unaware of the world of phonetic algorithms that are out there - I agree that they could be quite useful here. Though it's worth mentioning that some of the most misspelled words are foreign names and loan words that are tricky to spell precisely because they contradict the rules of English pronunciation (e.g. Sriracha, Shyamalan).

Considering previous word(s) would definitely be useful for identifying multi-word expressions like "___ park", "____ syndrome" etc. I was just afraid of the added complexity that would introduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants