Skip to content

benkrause/human-level-text-prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code used for blog post Achieving Human-level text prediction.

Code is a mess, but this at least should make it possible to replicate what I did.

Requirements: python 3, chainer, cupy

Instructions for use:

  1. Run the following unix command to recover the original model file

cat model_part.aa model_part.ab > model

  1. download the text8 dataset from http://mattmahoney.net/dc/text8.zip, put the unzipped text8 file in the project directory

  2. Run the main file simply with:

python main.py

Takes an hour or so to run, spits out the entropy of the 75 characters of text from the book "Jefferson the Virginian" to allow for direct comparison to human prediction from this classic paper. Default settings should give a cross-entropy of 1.31 bits/character.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages