{"id":48,"date":"2017-06-05T17:03:30","date_gmt":"2017-06-05T17:03:30","guid":{"rendered":"http:\/\/joshuacatalano.org\/blog\/?p=48"},"modified":"2017-06-05T17:41:23","modified_gmt":"2017-06-05T17:41:23","slug":"mining-eleanor-roosevelts-my-day-columns","status":"publish","type":"post","link":"https:\/\/joshuacatalano.org\/blog\/uncategorized\/mining-eleanor-roosevelts-my-day-columns\/","title":{"rendered":"Mining Eleanor Roosevelt\u2019s My Day Columns"},"content":{"rendered":"<div class=\"entry\">\n<p><em>This post is co-written by Amanda Regan and Joshua Catalano. It is cross-posted on <a href=\"http:\/\/www.amanda-regan.com\/\">Mandy\u2019s blog<\/a>.<\/em><\/p>\n<p><a href=\"http:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/hacktolearn-black.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-58 alignright\" src=\"http:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/hacktolearn-black-300x99.png\" alt=\"\" width=\"300\" height=\"99\" srcset=\"https:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/hacktolearn-black-300x99.png 300w, https:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/hacktolearn-black-768x255.png 768w, https:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/hacktolearn-black.png 998w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Two weeks ago, Amanda Regan and I\u00a0participated in the Collections as Data <a href=\"http:\/\/www.digitalpreservation.gov\/meetings\/hack-to-learn\/hack-to-learn-site.html\">Hack-to-Learn<\/a> event sponsored by the Library of Congress, George Washington University, and George Mason University. For the event, George Washington University, the Library of Congress and the Smithsonian provided participants with a series of datasets. The corpus that we gravitated toward included all of Eleanor Roosevelt&#8217;s <em>My Day<\/em> columns. During the workshop, we ran a 60 topic model on the columns. Due to time constraints and technical challenges during the workshop we were not able to accomplish much beyond creating the topics. The dataset, composed of almost 8,000 columns, resulted in large files that required manipulation with a tool such as R in order to create visualizations and analyze the results. This made it difficult for participants to do much with the topic modeling results during the workshop. Over the last two weeks, we have worked to take the topic model, manipulate the results, and create an interactive app with several visualizations that allows for an exploration of the topic model. This blog post will detail some of the process of making this visualization and describe how it might be used and interpreted.<\/p>\n<h3>About Eleanor Roosevelt\u2019s My Day Columns<\/h3>\n<p>From December 1935 until September 1962, Eleanor Roosevelt wrote a nationally syndicated newspaper column entitled <em>My Day<\/em>. Because Roosevelt did not keep any sort of diary and her appointment books were often incomplete, the \u201cMy Day\u201d columns have become a valuable source. The columns, authored six days a week until January 1961 and then three days a week thereafter, represent the only consistent account of her public activities. Thanks to the work of the Eleanor Roosevelt Papers&#8217; staff, who transcribed each <em>My Day<\/em> column and made them available online, anyone with internet access can now explore this important piece of history.<\/p>\n<p>The <a href=\"https:\/\/www2.gwu.edu\/~erpapers\/myday\/browsebyyear.cfm\">online repository<\/a> of <em>My Day<\/em> columns allows users to look for columns by year or find a particular word or phrase within the collection through keyword search. Keyword search however, requires a level of specificity and familiarity with the topics discussed within the archive. A topic model allows for a more thematic and interactive way of exploring the archive. Providing a thematic overview, a topic model allows users a different entry point into the archive generated by the content (words) of the documents rather than a predetermined organizing schemata such as Library of Congress subject headings or even keywords.<\/p>\n<h3>Preparing the Data, Generating the Topic Model, and Creating Visualizations<\/h3>\n<p>Each file, originally in XML, contained not only the date and text of the column, but a location where the column was written. Using these documents, we wrote a parsing script in R that created a csv of all the related metadata and then created a text file of the column text. The script identified the column date, location name, and geolocation in each article and wrote it to a csv along with each filename. This created a base metadata file. Next, the script went through each xml file and pulled out just the plain text of the column and wrote it to a text file.<\/p>\n<p>We used <a href=\"http:\/\/mallet.cs.umass.edu\/\">MALLET<\/a> to divide all of the 7,987 <em>My Day<\/em> columns (as plain text files) into 70 \u201ctopics.\u201d Each \u201ctopic\u201d is a set of words that frequently co-occur together throughout the corpus. These words indicate themes or discourses within the corpus. With Python and R, we then transformed the MALLET output into several different types of visualizations using <a href=\"https:\/\/shiny.rstudio.com\/\">Shiny<\/a> and a number of other packages. The benefit of using Shiny is that it allows users to change specific input parameters such as the topic, number of words, and the number of documents to display. The resulting app includes a word cloud representing the top words in the topic, a chart depicting the prominence of the topic over time, a map detailing the locations where the most prominent columns in the topic were written, and a list of the prominent columns in the topic (with a link to the text). Additionally, a tab at the bottom of the page allows users to view the top words in all 60 topics. Below are descriptions of each section of the visualization.<\/p>\n<ul>\n<li><strong>Top Words in Topic:<\/strong> The Word Cloud displays the topic as a distribution of words. The larger the word, the more frequently it appeared in the topic.<\/li>\n<li><strong>Yearly Proportion of Words in Topic:<\/strong> This time series chart depicts the topics prominence over time. The y-axis is the yearly proportion of words in the corpus belonging to that topic and the x-axis is the year. This view provides an estimation of the concentration of particular topics in certain years. For example, Topic 6, about refugees in the years following World War II, spikes between 1946 and 1948. Users can use the Top Columns chart to investigate further and track down the individual columns where this topic is prevalent.<\/li>\n<li><strong>Locations of Top Columns:<\/strong> Each <em>My Day<\/em> column includes a location that indicates where Roosevelt was when it was written and published. This map reflects Roosevelt\u2019s location for the top 30 documents in a topic.<\/li>\n<li><strong>Top Columns:<\/strong> This chart contains the metadata for the top 30 columns associated with a topic and a link to the original column on the Eleanor Roosevelt Papers website.<\/li>\n<\/ul>\n<h3>Interpreting the Visualization<\/h3>\n<p><a href=\"http:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/miningmyday.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-68 \" src=\"http:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/miningmyday-162x300.png\" alt=\"\" width=\"214\" height=\"396\" srcset=\"https:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/miningmyday-162x300.png 162w, https:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/miningmyday-768x1421.png 768w, https:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/miningmyday-553x1024.png 553w, https:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/miningmyday.png 1323w\" sizes=\"auto, (max-width: 214px) 100vw, 214px\" \/><\/a>Looking at the resulting visualization, we can get a sense of the themes and discourses that exist within the <em>My Day<\/em> corpus. For example, Topic 6 (fig 1) includes the words germany, europe, war, people, countries, french, country, and refugees. Looking at the proportion of words in the topic over time, it is clear that the topic spikes between 1946 and 1948. This cluster of words or topic corresponds to a period of time beginning in December 1945 when Eleanor Roosevelt served as a delegate to the United Nations and later as the first chairperson of the United Nations Commission on Human Rights. The words contained in this topic reflect her work serving in this capacity and are gleamed from the reports and comments she made following her visits to refugee camps. Topic 20, another similar topic, is also about Roosevelt\u2019s work with the United Nations but, upon closer inspection it is revealed that the topic is particularly about Roosevelt\u2019s work as the Chair of the Commission on Civil Rights. The spikes in 1948 and 1949 correspond with the United Nation\u2019s adoption of the Universal Declaration of Human Rights in December 1948.<\/p>\n<figure id=\"attachment_65\" aria-describedby=\"caption-attachment-65\" style=\"width: 300px\" class=\"wp-caption alignright\"><a href=\"http:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/topic6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-65 size-medium\" src=\"http:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/topic6-300x240.png\" alt=\"\" width=\"300\" height=\"240\" srcset=\"https:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/topic6-300x240.png 300w, https:\/\/joshuacatalano.org\/blog\/wp-content\/uploads\/2017\/06\/topic6.png 717w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-65\" class=\"wp-caption-text\">Figure 1: The top words in topic 6. See the full visualization <a href=\"https:\/\/regan008.shinyapps.io\/mining_my_day\/\">here<\/a>.<\/figcaption><\/figure>\n<p>Another example that speaks to the potential of topic modeling as a tool for exploring themes in a corpus is topic 30. The top words \u201cchristmas year children birthday family season party day friends eve cards gifts presents tree joy happy good gift child\u201d are clearly about holidays, birthdays, and festivities. Almost all of the most heavily associated documents were written in December just before or after the Christmas holiday. Roosevelt often described family traditions and gatherings such as singing Christmas carols or decorating for the holidays. For example, she once recounted thinking as she drove into New York City \u201chow lovely [the] modern electric lighting can make Christmas in the city.\u201d (Roosevelt, 12\/24\/1938) The few relevant articles in this topic that were not written in December discuss other celebrations or birthdays.<\/p>\n<p>Topic modeling is also a useful way to locate sources relating to a particular research interest. For example, a researcher interested in religion would quickly recognize it as the theme of Topic 14 and would be able to efficiently identify the 30 documents most likely to discuss the subject and where and when they were composed.<\/p>\n<p>This visualization offers yet another entry point into the Eleanor Roosevelt <em>My Day<\/em> columns and allows users who may not be intimately familiar with the content of these columns a way to sift, filter, and identify themes and discourses of interest within the corpus and direct them back to the original source material.<\/p>\n<p>You can see the code on <a href=\"https:\/\/github.com\/regan008\/ERMining\">github<\/a>. The visualization is available <a href=\"https:\/\/regan008.shinyapps.io\/mining_my_day\/\">here<\/a>.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This post is co-written by Amanda Regan and Joshua Catalano. It is cross-posted on Mandy\u2019s blog. Two weeks ago, Amanda Regan and I\u00a0participated in the Collections as Data Hack-to-Learn event sponsored by the Library of Congress, George Washington University, and George Mason University. For the event, George Washington University, the Library of Congress and the &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","category-uncategorized","anons"],"_links":{"self":[{"href":"https:\/\/joshuacatalano.org\/blog\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/joshuacatalano.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joshuacatalano.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joshuacatalano.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joshuacatalano.org\/blog\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":23,"href":"https:\/\/joshuacatalano.org\/blog\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":76,"href":"https:\/\/joshuacatalano.org\/blog\/wp-json\/wp\/v2\/posts\/48\/revisions\/76"}],"wp:attachment":[{"href":"https:\/\/joshuacatalano.org\/blog\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joshuacatalano.org\/blog\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joshuacatalano.org\/blog\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}