Warning: Constant ABSPATH already defined, this will be an error in PHP 9 in /home/unhinder/www/www/Phi/wp-config.php on line 22

Warning: Cannot modify header information - headers already sent by (output started at /home/unhinder/www/www/Phi/wp-config.php:22) in /home/unhinder/www/www/Phi/wp-includes/feed-rss2-comments.php on line 8
Comments on: N-grams and the evolution of programs https://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/ Not all battles are fought with a sword Wed, 11 Jun 2008 23:11:39 +0000 hourly 1 https://wordpress.org/?v=7.1.4 By: Phi https://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/comment-page-1/#comment-32506 Wed, 11 Jun 2008 23:10:56 +0000 http://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/#comment-32506 Warning: Undefined array key "HTTP_REFERER" in /home/unhinder/www/www/Phi/wp-content/plugins/google-hilite.php on line 58

Sorry for the delay in responding to this – the hazards of family holidays :-).

I’m not sure why the old link doesn’t work anymore. I found the new link, and have edited the link in the article above. Thanks for pointing out the problem!

]]>
By: Tozier https://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/comment-page-1/#comment-32501 Fri, 06 Jun 2008 11:22:37 +0000 http://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/#comment-32501 Warning: Undefined array key "HTTP_REFERER" in /home/unhinder/www/www/Phi/wp-content/plugins/google-hilite.php on line 58

Oy! Link to preprint/paper is dead. Have we another recourse, or has the evil Springer empire eaten the thing completely and hidden it from public eyes?

]]>
By: CoryQ https://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/comment-page-1/#comment-32291 Mon, 04 Feb 2008 15:07:51 +0000 http://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/#comment-32291 Warning: Undefined array key "HTTP_REFERER" in /home/unhinder/www/www/Phi/wp-content/plugins/google-hilite.php on line 58

OK, I’m not a scientist (nor do I play one on TV) and though I’m not sure what you might use this N-gram stuff for, I think it is interesting to read about.

]]>
By: Bill Tozier https://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/comment-page-1/#comment-32288 Sun, 03 Feb 2008 19:01:51 +0000 http://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/#comment-32288 Warning: Undefined array key "HTTP_REFERER" in /home/unhinder/www/www/Phi/wp-content/plugins/google-hilite.php on line 58

A long, long time ago (1991 SFI Summer School, I think) we played with masked long-range N-grams as a way of capturing multi-scale linguistic structure. Admittedly, we were considering texts and CA patterns character-wise, not word-wise, but the idea still seems applicable and interesting.

Most N-gram datasets consider only contiguous atoms, as in strings of three characters, or runs of three words. Back in the Dark Ages we looked at “masked” runs with “don’t care” spaces in them. For example, as I recall we looked at how well “English-like” texts were reproduced by standard 4-grams [1234], compared to masked schema like [12#3##4] and [1##23##4], where “#” indicates a “don’t care” space-holder.

There was some math, and some fancy statistics we did on which masks were “better” for particular tasks… but it was just Summer School play. We looked at a limited subset of possible masks, and spent most of our time considering how to determine “Englishness” automatically. And on Mac IIs and first-generation NeXT boxen, so very very slowly.

I’m not sure if anybody ever followed up on it.

As I see it, you and Riccardo are essentially “lossily compressing” the kind of subtree archives that are useful in Conor Ryan’s and Guido Smits’s and others’ work in GP. That seems like a great idea, and a challenge we’re tackling right now in practice here in Ann Arbor. We’re building a Push-GP system, and wanted to use “subtree” archives (Push programs aren’t really trees) to accelerate and do pattern mining. I think we’ll look at your approach instead.

And I can see how this would really boost the exploration/exploitation angle in GP: I can use your predictive EDA rules in an ongoing run of GP to bias search towards successful patterns (as you have), but can use the same infoto hare off into unexplored territory by invoking some kind of inverse. By avoiding what’s been shown to be useful before.

Maybe somebody should do that right away. (He said, pointedly.)

]]>
By: Phi https://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/comment-page-1/#comment-32286 Sun, 03 Feb 2008 13:08:06 +0000 http://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/#comment-32286 Warning: Undefined array key "HTTP_REFERER" in /home/unhinder/www/www/Phi/wp-content/plugins/google-hilite.php on line 58

Very cool. I’d thought about turning my bit of Ruby code into a web app so people could play, but hadn’t actually done anything about it, in part because I assumed that there were probably similar things out there on the web already.

One important difference between the tool you found and the program I used is that he works at the character level, and I worked at the level of words. Thus his program can generate “words” that aren’t (like “linguish” and “documential”), whereas the words from my program will always be real, and the breakdown will be more at the sentence level.

I hadn’t thought about the relationship to spam text, but it does look a lot like the stuff they tend to include. I suspect this is not a coincidence!

]]>
By: ToolboxY2K https://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/comment-page-1/#comment-32285 Sun, 03 Feb 2008 08:36:57 +0000 http://UnhinderedByTalent.com/Phi/archives/2008/02/02/n-grams-and-the-evolution-of-programs/#comment-32285 Warning: Undefined array key "HTTP_REFERER" in /home/unhinder/www/www/Phi/wp-content/plugins/google-hilite.php on line 58

I found an online tool that creates N-grams (http://jonathanwellons.com/n-grams/index.cgi) and ran your “intro to N-grams” through it a couple of times to see what I would get:

N=1, generate 20 characters:
TTTTTTTTTTTTTTTTTTTT

N=5, generate 600 characters:
t (a book, say you can capture, but we table the beginning, as well.A quick is to ment; we could be very useful computational linguish between two texts (although if therefore, are lots of then N=1), while the butler whenever, does the but we table following sequently the otherefore, are words within a technical paper once at texts (does the frequency of triplets overlap, so we’re us and however, doesn’t really words, and we’re simply counting can capture, are like when words) that triplets), once in the documential idea is to looking up the beginning, as well.A quick is meaningful compromise

Looks interesting. The second example looks like the “classic prose” that spammers use to get their junk mail past spam filters.

I like the term “computational linguish” to describe it. Maybe we can evolve that term and find a more successful one. :)

]]>