Friday, April 1, 2016

Infinite Monkeys 4.00

Today is a momentous day in the history of Infinite Monkeys. The 4.00 release is now completed and debugged.

What's New?

Firstly, all database files in IM4 are JSON objects. This makes them easier to export to web projects.

Secondly, a Linux build is included in the main ZIP. So now you no longer have to run it under WINE.

Yeah but that conversion process was slow..

Not anymore! It originally took the master dictionary over 5 hours convert to HTML. Now it takes less than 5 minutes!

Swell. But what about ngrams?

Those are saved as JSON too! You can now export saved JSON biases and use them in web pages. An example can be found here.

So that's it?

No! I ripped out the old Part of Speech Tagger, and backended Stanford NLP Group's Part of speech tagger.

Well that sounds good. What else?

JSON Basic has a couple of cool new functions which allow you to operate the dictionary like a State Machine.

So instead of making redundant calls, you can set the dictionary to a specific state and make simpler calls to it like so:

var s = "";

build_dictionary("", "UW", "", 0, 0 );

s += JJ + " " + NNS + newline(1);
s += JJ + " " + NNS + newline(1);
s += "the " + NN + " of " + NNS;

print( s );
out( s );

Notice the 'build_dictionary' function? That's a new option!

I can reset that too?

Hell yes! Try this!

build_dictionary( reset )

What about backward compatibility?


Ok. Well that seems alright.


So what's next?

I will be working toward getting the ngrams and the dictionaries to work in tandem to create dynamic interactive texts!


Where's the link?


No comments:

Post a Comment