TWiC Progress Update #4 – Day of DH 2015 – Text Cluster highlighting and the Day Comes to a Close

So you began the day after the national holiday at a car dealership getting your car repaired, and spent the rest of it programming in JavaScript. You arrive home and realize that your house keys are with your car keys and you’re locked out. What do you do?  Well, you head over to Dieu du Ciel until your roommate gets home and anoint the summer with a late evening coding session and Hibiscus beer.

TWiC at Dieu du Ciel
And then you get to work. To finish off this day of digital humanities, I thought I might try to tackle a brand, new feature. This is a challenge day after all. I wanted to bring these miniaturized texts a bit more into alignment with the nature of these TWiC bullseyes. And to do so, I combined the functionality of both objects in order to wrap these text rectangles in topic colors – sort of rectangular bullseye.

TWiC New Text Rectangle highlighting

The thought here is that each text itself will have a different set of top N topics, and like with the corpus level clusters of the view above this one, it could be useful to understand which texts at this level share prevalent topics. As you mouse over the bordering rectangles, texts with those topics will be highlighted. The code for this is coming along, and there’s just a few more bugs to iron out. Once readied, this mouseover effect will also be useful elsewhere in TWiC as well. One aspect of panels communicating that I slightly elided earlier is that all of the mouseover highlighting effects I’ve showcased today in graphical panels are also linkable.  Take a look at what happens when I connect the corpus and corpus cluster views, for instance.

With views of varying scales of information in sight, the potential to understand hierarchical connections in the topic model become possible.  And as it’s just past midnight and Day of DH 2015 is officially over, I thought I’d close with a look at the final and lowest level of TWiC: the individual text with its topic words, thankfully, now in context. So to all of you secret close-reading fans out there in DH land, I bid you a fond goodnight – I’m one of you, after all.

TWiC individual text

If you have any questions or suggestions about TWiC, feel free to reach out to me on Twitter at @jonathangrams, or if you’d like to contribute to the development of the project, message me on Github: github.com/jarmoza.  For more reading on the early development of TWiC and its relation to Emily Dickinson’s fascicles, take a look at my regular blog at McGill.

Leave a Reply

Your email address will not be published. Required fields are marked *