Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/olemb/ngram-test

Count n-grams of length N and store them in a shelve
https://github.com/olemb/ngram-test

Last synced: about 6 hours ago
JSON representation

Count n-grams of length N and store them in a shelve

Awesome Lists containing this project

README

        

n-gram counter
===============

Counts n-grams of given length in a file and stores them in a shelve. This is just an example, and it needs a bit of work before it can be used for anything useful.

See: http://www.reddit.com/r/learnpython/comments/1hd3rp/how_to_do_as_much_in_memory_as_possible_without/

License: MIT (http://en.wikipedia.org/wiki/MIT_License)

- Ole Martin Bjørndalen