Skip to content

Instantly share code, notes, and snippets.

Avatar

Zeph Turner zeph-turner

View GitHub Profile
@zeph-turner
zeph-turner / language_mashup_generator.py
Created Feb 10, 2019
Generate mashup languages with textgenrnn.
View language_mashup_generator.py
'''
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