Skip to content

Instantly share code, notes, and snippets.

View zeph-turner's full-sized avatar

Zeph Turner zeph-turner

View GitHub Profile
@zeph-turner
zeph-turner / language_mashup_generator.py
Created February 10, 2019 19:42
Generate mashup languages with textgenrnn.
'''
Dependency: textgenrnn (can be installed through pip: !pip install textgenrnn
in Jupyter Notebook)
Written and tested with Python 3.6 through Jupyter Notebook.
This function was created to automatically make a neural net that can
generate words from "mashup languages". Several source files are input,
each creating words, names, etc. from a single language. A neural net aggregates
the contents of the input files, lengthening shorter files to ensure each language
is represented in the output, trains a neural net on the aggregated