RWET – News of the Worlds

The goal of my RWET final was to produce something that referenced current news headlines but incorporated text from fictional worlds like Star Wars and Adventure Time.

Things I was thinking about while working on this:

  • I mostly read news
  • Headlines tend to favor “man bites dog” narrative
  • Increasing concern with “fake” news and propaganda
  • Fire hose of news online
  • Escapism

I mainly used the Spacy natural language processing library to accomplish this although I tried a number of different approaches.

Read More

RWET Final Proposal

Real news for a fictional world:

The idea I have for the final is to create a sort of news service for fictional worlds. My thinking right now is that I’ll work on something that reads in current headlines, picks one (or maybe uses all of them) to construct a headline for a fictional (e.g. TV or video game) universes. My plan is to use spaCy to pick out noun phrases and other parts of speech and then replace them with similar parts of speech from Wikia fandom pages. This may include descriptions of the articles as well. Ideally this will create a natural contrast with the idea narrative of “fake news”. Here are some examples done by hand:

 

I’m still trying to figure out how the presentation of this will work, maybe I will read it like a newspaper. I’m not sure if it should come from one fandom or multiple.

RWET – Markov / Ngram

This week I took my headline gathering script and applied the Ngram and Markov chain library to it. After adjusting the length of the N grams and trying out some “key” words I ended up with something rather simple but effective in terms of this confusion of news and time effect I’m going for. Basically I take all of my headlines and pass them through Generate_from_tokens function to create new headlines with an Ngram length of 6. I liked the results here because the headlines are typically generated but occasionally repeating the source material so when you read through a list of them its unclear whats real and what isn’t. Also some of them worked out to be kinda funny. Here are some of the highlights:

Read More

RWET – Functions

This week I took my previous assignment and tried to get all the printing to work through a function. I got it all working in the end but I had a surprising amount of difficulty.

I call the function like this:

 

Here’s an example of the result, which hasn’t changed much.

 

Ashwin’s dig: March 30 will be known as ‘World Apology Day’ – Times of India

thirtieth

Both Houses adjourned till 11 am on March 31

Does Science Advance One Funeral at a Time?

 

Both Houses adjourned till 11 am on March 31

thirtieth

Supreme Court refers triple talaq case to 5-judge constitutional bench; hearing to begin May 11 – Times of India

No stamping of flyers’ handbags at 7 airports from April 1 – Times of India

I tried to set this aside as a module but It required a lot of libraries and variables from my main script. I guess I could have passed all those through as parameters but it felt kinda hacky so I left it all as one file.