<commit_before>[![Build Status](https://img.shields.io/travis/sotetsuk/memozo.svg)](https://travis-ci.org/sotetsuk/memozo)
[![Coverage Status](https://img.shields.io/coveralls/sotetsuk/memozo.svg)](https://coveralls.io/github/sotetsuk/memozo)
[![python3.5](https://img.shields.io/badge/python-3.5-blue.svg)](https://github.com/sotetsuk/memozo)
[![LICENCE](https://img.shields.io/github/license/sotetsuk/memozo.svg)](https://github.com/sotetsuk/memozo)

# memozo
Python decorator for memoization to disk.

## Motivating example
Imagene that now you have tremendous number of sentences and you have to filter the sentences which includes a given keyword.
You will create a filtering generator which take a argument as keyword,
and you may want to **cache** the filtered sentences to disk if you plan to reuse the filtered sentences again,

**memozo** greatly helps such a situation !<commit_msg>fix typos in readme<commit_after>[![Build Status](https://img.shields.io/travis/sotetsuk/memozo.svg)](https://travis-ci.org/sotetsuk/memozo)
[![Coverage Status](https://img.shields.io/coveralls/sotetsuk/memozo.svg)](https://coveralls.io/github/sotetsuk/memozo)
[![python3.5](https://img.shields.io/badge/python-3.5-blue.svg)](https://github.com/sotetsuk/memozo)
[![LICENCE](https://img.shields.io/github/license/sotetsuk/memozo.svg)](https://github.com/sotetsuk/memozo)

# memozo
Python decorator for memoization to disk.

## Motivating example
Imagene that now you have tremendous number of sentences and you have to filter the sentences which includes a given keyword.
You will create a filtering generator which take an argument as keyword,
and you may want to **cache** the filtered sentences to disk if you plan to reuse the filtered sentences again.

**memozo** greatly helps such a situation !
{'fraction_non_alphanumeric': 0.13496932515337423, 'fraction_numerical': 0.004461795872838818, 'mean_word_length': 5.339222614840989, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2783230', 'n_tokens_mistral': 612, 'n_tokens_neox': 573, 'n_words': 151}