Anyway, too big to paste in here, so here is the text file.
And here are my operators:
H |*> #=> how-many inverse-links-to |_self> S |*> #=> table[wikipage,coeff] select[1,200] 100 self-similar[inverse-links-to] |_self>I guess the point is made. Not sure how much more I want to do with it, at least for now.
Update: here is a thought. You know the game, one person says a word/concept then the other person has to answer with the first thing that crosses their mind. We could do that (though the current code would be rather slow!). Something like:
what-do-you-think-of-when-you-hear |*> #=> select[1,1] clean similar[inverse-links-to] |_self>Noting that we don't need the multiply by 100, and we use similar[op] not self-similar[op].
So, some examples in the console:
sa: what-do-you-think-of-when-you-hear |*> #=> select[1,1] clean similar[inverse-links-to] |_self> sa: what-do-you-think-of-when-you-hear |WP: Pen> |WP: Marker_pen> sa: what-do-you-think-of-when-you-hear |WP: Fox> |WP: Hyena>Cool! Though we can add a random element in there too:
-- version 1: sa: what-do-you-think-of-when-you-hear |*> #=> clean select[1,1] shuffle select[1,5] similar[inverse-links-to] |_self> -- version 2: sa: what-do-you-think-of-when-you-hear |*> #=> clean pick-elt select[1,5] similar[inverse-links-to] |_self> sa: what-do-you-think-of-when-you-hear |WP: Fox> |WP: Weasel> sa: what-do-you-think-of-when-you-hear |WP: Diamond> |WP: Selenium> -- version 3: sa: what-do-you-think-of-when-you-hear |*> #=> clean pick-elt select[1,5] similar[inverse-links-to] merge-labels(|WP: > + |_self>) sa: what-do-you-think-of-when-you-hear |Physics> |WP: Chemistry> -- version 4: sa: what-do-you-think-of-when-you-hear |*> #=> extract-value clean pick-elt select[1,5] similar[inverse-links-to] merge-labels(|WP: > + |_self>) sa: what-do-you-think-of-when-you-hear |Student> |Uniform> sa: what-do-you-think-of-when-you-hear |Quentin_Tarantino> |Brian_De_Palma> sa: what-do-you-think-of-when-you-hear |House> |Amateur_astronomy> sa: what-do-you-think-of-when-you-hear |Elephant> |Ant> sa: what-do-you-think-of-when-you-hear |Elephant> |Donkey> sa: what-do-you-think-of-when-you-hear |Rock_and_roll> |Jimmie_Rodgers_(country_singer)> sa: what-do-you-think-of-when-you-hear |Rock_and_roll> |American_Bandstand> sa: what-do-you-think-of-when-you-hear |Paris> |Moscow> sa: what-do-you-think-of-when-you-hear |Paris> |Rome> sa: what-do-you-think-of-when-you-hear |Cryptography> |Data_Encryption_Standard> sa: what-do-you-think-of-when-you-hear |Cryptography> |one-time_pad> sa: what-do-you-think-of-when-you-hear |Drake_equation> |Kepler_(spacecraft)> sa: what-do-you-think-of-when-you-hear |Drake_equation> |Frank_Drake> sa: what-do-you-think-of-when-you-hear |Slashdot> |Bruce_Schneier> sa: what-do-you-think-of-when-you-hear |Slashdot> |Adrian_Carmack> sa: what-do-you-think-of-when-you-hear |Slashdot> |Neal_Stephenson> sa: what-do-you-think-of-when-you-hear |Scotland> |Edinburgh> sa: what-do-you-think-of-when-you-hear |Scotland> |Spain> sa: what-do-you-think-of-when-you-hear |Food> |Wood> sa: what-do-you-think-of-when-you-hear |Food> |Cement> sa: what-do-you-think-of-when-you-hear |Food> |glycemic_index> sa: what-do-you-think-of-when-you-hear |The_Terminator> |T-1000> sa: what-do-you-think-of-when-you-hear |The_Terminator> |Aliens_(film)> sa: what-do-you-think-of-when-you-hear |Algebra> |Axiom> sa: what-do-you-think-of-when-you-hear |Algebra> |Constructivism_(mathematics)> sa: what-do-you-think-of-when-you-hear |Functional_analysis> |Measure_theory> sa: what-do-you-think-of-when-you-hear |Functional_analysis> |spanning_tree>OK. Some weird ones in there, but some fun ones too. And if we use more of wikipedia then we should get even better results.
Update: we can now also do this:
sa: table[wikipage] exp[what-do-you-think-of-when-you-hear,10] |The_Terminator> +-----------------------------+ | wikipage | +-----------------------------+ | The_Terminator | | Sylvester_Stallone | | Eddie_Murphy | | Kevin_Costner | | Michelle_Pfeiffer | | Sharon_Stone | | Frasier | | sitcom | | Cheers | | CBS_Television_Distribution | +-----------------------------+ Time taken: 1 hour, 18 minutes, 41 seconds, 294 millisecondsUpdate: I applied similar[inverse-links-to] to a 300,000 sample of wikipedia (as opposed to 30,000 used here) and the results were even better!
No comments:
Post a Comment