<commit_before># NAME #

p5-postcodify

# REQUIREMENTS #

    $ cpanm --installdeps .

# Choose database #

configure in `postcodify.conf.pl`

## SQLite data file ##

    # requires 2GB+ disk
    $ cd db/
    $ wget http://storage.poesis.kr/downloads/post/postcodify.20141112.v2.sqlite.xz
    $ xz -d postcodify.20141112.v2.sqlite.xz

    # or just
    $ wget -qO- https://raw.githubusercontent.com/aanoaa/p5-postcodify/develop/installer.sh | sh

    # does not have `wget`?
    $ curl https://raw.githubusercontent.com/aanoaa/p5-postcodify/develop/installer.sh | sh

## MySQL data file ##

    $ wget http://storage.poesis.kr/downloads/post/postcodify.20161230.v3.mysqldump.xz
    $ xz -d postcodify.20161230.v3.mysqldump.xz
    $ mysql -u root -p -e 'GRANT ALL PRIVILEGES ON `postcodify`.* TO postcodify@localhost IDENTIFIED by "<PASSWORD>";'    # WARN: type your own secret password
    $ mysql -u postcodify -p -e 'CREATE DATABASE `postcodify` DEFAULT CHARACTER SET utf8;'
    $ mysql -u postcodify -p postcodify < postcodify.20161230.v3.mysqldump

# TEST #

    $ cpanm Encode
    $ perl scripts/search.pl 서울시 강남구 논현동 99-1

    # web application
    $ cpanm Plack
    $ plackup -Ilib   # http://localhost:5000

# SEE ALSO #

[postcodify](https://github.com/kijin/postcodify)
<commit_msg>Remove SQLite section in README<commit_after># NAME #

p5-postcodify

# REQUIREMENTS #

    $ cpanm --installdeps .

# Choose database #

configure in `postcodify.conf.pl`

## MySQL data file ##

    $ wget http://storage.poesis.kr/downloads/post/postcodify.20161230.v3.mysqldump.xz
    $ xz -d postcodify.20161230.v3.mysqldump.xz
    $ mysql -u root -p -e 'GRANT ALL PRIVILEGES ON `postcodify`.* TO postcodify@localhost IDENTIFIED by "s<PASSWORD>";'    # WARN: type your own secret password
    $ mysql -u postcodify -p -e 'CREATE DATABASE `postcodify` DEFAULT CHARACTER SET utf8;'
    $ mysql -u postcodify -p postcodify < postcodify.20161230.v3.mysqldump

# TEST #

    $ cpanm Encode
    $ perl scripts/search.pl 서울시 강남구 논현동 99-1

    # web application
    $ cpanm Plack
    $ plackup -Ilib   # http://localhost:5000

# SEE ALSO #

[postcodify](https://github.com/kijin/postcodify)

{'fraction_non_alphanumeric': 0.12213039485766758, 'fraction_numerical': 0.04269972451790634, 'mean_word_length': 3.0652985074626864, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2510792', 'n_tokens_mistral': 934, 'n_tokens_neox': 863, 'n_words': 184}