Skip to content

Computationally creative system for creating six word stories (two versions)

License

Notifications You must be signed in to change notification settings

gbspend/microfiction

Repository files navigation

microfiction

Setup

install:

apt-get install python-dev g++ python-tk libblas-dev

pip install matplotlib numpy scipy cython requests nltk pattern word2vec Theano

download:

Download https://drive.google.com/file/d/1srOUFidQ9fV240wyF7GW4eqF6raCawBV/view (for ssh: download in OS and use (p)scp), place posttagged_wikipedia_for_word2vec.bin in ./data folder, and rename to tagged.bin (discard the rest)

https://github.com/danielricks/penseur (place in ./penseur folder)

Paste the snippet from pens_func at the bottom of ./penseur/penseur.py

Touch __init__.py in ./penseur folder

In ./penseur/skipthoughts.py line 94, change to Verbose=False

run: In ./data folder-

wget http://www.cs.toronto.edu/~rkiros/models/dictionary.txt
	
wget http://www.cs.toronto.edu/~rkiros/models/utable.npy
	
wget http://www.cs.toronto.edu/~rkiros/models/btable.npy
	
wget http://www.cs.toronto.edu/~rkiros/models/uni_skip.npz
	
wget http://www.cs.toronto.edu/~rkiros/models/uni_skip.npz.pkl
	
wget http://www.cs.toronto.edu/~rkiros/models/bi_skip.npz
	
wget http://www.cs.toronto.edu/~rkiros/models/bi_skip.npz.pkl

in python:

import nltk

nltk.download('wordnet')

nltk.download('punkt')

About

Computationally creative system for creating six word stories (two versions)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published