Whats the best time for creativity? In the shower of course. Our project hopes to inspire this. With this new Alexa feature, we will bring provide you the inspiration that you need to spark your creativity!
- Scrape data from Reddit shower thoughts.
- Create a neural network that can generate shower thoughts.
- Integrate with Amazon Alexa to spit out generated text.
Data is collected through Reddit's API. We scraped data from: https://www.reddit.com/r/Showerthoughts/.
We built a recurrent neural network that uses the scraped Reddit posts as scraped data. Then we generated new text.
- Create the input train set and labels with the scraped data.
- Convert words into vectors.
- Feed train data through two layers of GRU to train the weights.
- Feed a seed to the neural network and predict a probability distribution over the possible words that might come after the seed.
- Pick a word based on the probability distribution.
We used AWS lambda to ask users for a keyword that would be used to generate a random, uncommon thought.
- Create Alexa skill with appropriate intents and slot values.
- Have Alexa call the text generator with the user's keyword.
- Naturally repeat the sentence back to the user.
Things I need to do: preprocess the text (remove numbers and special characters)
Jin Li
Matthew Li