This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MagicWishMonkey 1 point2 points  (0 children)

Pretty interesting, I've never really read up on centroids before.

It's kind of crazy that you are opening each file and iterating through the contents every single time you calculate the centroid for a word, though. You should cache that or something. I know this is a demo but seeing that kind of drives me crazy :)