Skip to content

Instantly share code, notes, and snippets.

View aparrish's full-sized avatar

Allison Parrish aparrish

View GitHub Profile
@aparrish
aparrish / semantic_similarity_chatbot.ipynb
Created July 17, 2018 17:33
Semantic similarity chatbot (with movie dialog). Gist mirror of Colab notebook here: https://colab.research.google.com/drive/1XlmtcyMdPRQC6bw2HQYb3UPtVGKqUJ0a Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / predictive-models.ipynb
Created July 9, 2018 19:47
Predictive text and text generation notebook. Written for Code Societies at SFPC, summer 2018. Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / colorpoems.md
Last active July 2, 2018 04:54
Some color poems based on the XKCD color corpus and nearest neighbors calculations.

Most similar colors using an increasing number of characters

red

red
ruby
blood
claret
scarlet
@aparrish
aparrish / a-reasonable-introduction.ipynb
Last active September 7, 2022 08:59
Workshop notebook. Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / index.md
Last active November 10, 2023 01:54
Honey, I Turned The Poems Into A Recurrent Neural Network: A Short Evening of Computer-Generated Poetry

poster image

Honey, I Turned The Poems Into A Recurrent Neural Network: A Short Evening of Computer-Generated Poetry

Description

On this auspicious evening, students from NYU's Interactive Telecommunications Program will read their computer-generated poetry aloud before a delighted audience (that's you!). To be presented are a number of vital contemporary poetic forms, including neural network biblical gibberish, PowerPoint presentations from stochastic processes, instructions for generating instructions for generating instructions, deeply plausible computer-imagined artist statements, human-assisted machine translations, and oh, chatbots of all types and varieties.

This event is part of the final project requirements for Reading and Writing Electronic Text, a class at ITP that combines an introduction to the Python programming language with an introduction to conceptual and experimental poetry. More information about the class can be fou

@aparrish
aparrish / index.md
Created April 18, 2018 20:44
I trained a recurrent neural network on all of the titles of papers in my Zotero and I got completely roasted
  • The Poetry of Surreal Andrew of Poetry of Strange and Deadly in Dreams of Development of Brickution
  • Sound Language in Similarity of Semantic Context Experimentality and Social Learning Participation of Neural Networks
  • The phonetic language magic in the random processes and self-literature and the entropy
  • The Surrey Generation of Modernity
  • A Google Generation
  • Structures in the medies
  • A Poetry of Poetry
  • A computational analysis of analysis of computer
  • A Founders of Poetry: A Trump and the Strange Games
  • Creative Embeddings for Alejanded Text Display of the Consers
@aparrish
aparrish / shmarkov.py
Last active January 22, 2021 13:04
shmarkov.py, a set of functions for simple and concise markov chain text generation in Python. should work in python 2 and python 3
# shmarkov.py, simple and concise markov chain text generation
# Copyright (C) 2018 Allison Parrish
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the “Software”), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is furnished to do
# so, subject to the following conditions:
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / index.md
Last active April 7, 2021 14:37
aparrish workshop for machine literacy at sfpc

Introduction to Natural Language Processing and Word Vectors

Nothing is more essentially human than linguistic communication. But when programmers, data scientists, and computational linguists work with language, the abstractions they work with sometimes don't line up with your intuitive understanding of spelling and grammar. In this workshop, we'll investigate the state of the art of natural language processing, including: a whirlwind tour of spaCy for parsing English into syntactic constituents; a discussion of techniques for classifying and summarizing documents; and an explanation and demonstration of "word vectors" (like Google's word2vec), an innovative language technology that allows computers to process written language less as discrete units and more like a continuous signal. Workshop participants will develop a number of small projects in text analysis and poetics using a public domain text of their choice. In becoming familiar with contemporary techniques for computational language analysis, cri

@aparrish
aparrish / average-novel.txt
Created November 28, 2017 21:12
The Average Novel. See here for further explanation: https://github.com/NaNoGenMo/2017/issues/22
Produced Produced Produced Produced Produced Produced
Produced Proofreaders Proofreaders Proofreaders
Proofreaders Proofreaders Proofreaders Proofreaders ELEANOR
ELEANOR ELEANOR ELEANOR ELEANOR ELEANOR ELEANOR ELEANOR
RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK
RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK
RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK
RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK
RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK
RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK RICK