Skip to content

Infinite Monkeys n-gram Algorithm in JavaScript

February 20, 2014
by

Apparently WordPress does not allow you to edit HTML directly? That is sad. I was able to post the n-gram algorithm which comes stock with Infinite Monkeys directly to blogger, which is cool.

LINK: http://baseinfinity.blogspot.com/p/helper-functions-function-splitover.html

Currently, the program allows you to do word level n-gram manipulations on a large amount of text. The algorithm is identical to the one which is found in standalone executable version of Infinite Monkeys 1.99 but some functionality is missing. The ability to load and save ‘biases’ (the saved n-gram states) is absent. The interface is clunky and odd (because it is stuck in a blog post). That is about it. I hope you enjoy. More to come, for sure.

:BTW:

This is the first ever project I have done in JavaScript, but I will continue to work with the language. It is the most well document language in the history of programming which is a good thing, since it’s painfully difficult to debug. There’s an universal truth circulated among programmers. It is not the errors that refuse to compile that cause the most grief, it is the ones that compile and lurk in the background, destroying your faith in yourself, that are the worst bugs. JavaScript will run regardless of what nonsense you throw at it. JavaScript will compile anything.

~dave

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: