-
Notifications
You must be signed in to change notification settings - Fork 1
Final Project Feedback #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
regan008
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jeff in summary: your code is really organized and well written. You've clearly picked up on the syntax this semester and have absorbed the concepts in the worksheet. Great job on this. I am looking forward to seeing where you take this research next!
| format: html | ||
| --- | ||
|
|
||
| The expansion of imperial powers in the Western Hemisphere has been a foreign policy concern for the United States, which was exemplified by the Monroe Doctrine as well as the Corollary to the Monroe Doctrine.^[fn1: Jeffrey A. Engel, et al., America in the World: A History in Documents from the War with Spain to the War on Terror, (Princeton, NJ: Princeton University Press, 2014), 23-24, 71-72] The fear of foreign influence in Latin America was especially prevalent during the interwar period and World War II. Franklin Delano Roosevelt was keenly aware of Latin America’s distaste for U.S. military intervention, so he decided to deviate from past precedence by taking the approach of being a good neighbor.^[fn2: Irwin F. Gellman, Good Neighbor Diplomacy: United States Policies in Latin America, 1933-1945, (Baltimore: Johns Hopkins University Press, 2019),11-12] Drawing from the digital methods used on the Foreign Policy Bulletin Dataset, which is comprised of publications from the Foreign Policy Bulletin, the interactions driving U.S. foreign policy during Roosevelt’s presidency become more apparent. Even though Latin America’s coverage was underrepresented compared to European or Axis nations, the Foreign Policy Bulletin’s coverage of Latin America suggests that collective security efforts and hemispheric solidarity were central to U.S. foreign policy efforts. Inter-American cooperation and hemispheric solidarity were seen as essential foreign policy measures for protecting the United States from the Axis Powers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my email for feedback on this paragraph. I think an effective opening hook here might be FDR's address that he delivered to FPA members.
| Over the last century, the Foreign Policy Association (FPA) has been producing content on U.S. foreign policy. Originally established as the League of Free Nations Association, the association’s initial aspirations were to support peace initiatives promulgated by Woodrow Wilson. However, the League of Free Nations Association was short-lived, and the association would shortly be changed to the FPA in 1923, where all matters of U.S. foreign policy fell under their purview of study. Moreover, the FPA had high-ranking U.S. political figures among its incorporators, including Eleanor Roosevelt and John Foster Dulles. In addition to these important incorporators, FPA members also had addresses delivered before them by Franklin D. Roosevelt.^[fn3: Foreign Policy Association, “About FPA,” accessed April 28, 2024, https://www.fpa.org/about/] In 1931, the FPA began producing the Foreign Policy Bulletin, which published articles on international events affecting U.S. foreign policy. The Foreign Policy Bulletin Dataset is comprised of the volumes produced by the Foreign Policy Bulletin between 1936 and 1946.^[fn4: John Mark Ockerbloom, “The Online Books Page: Foreign Policy Bulletin,” accessed April 28, 2024, https://onlinebooks.library.upenn.edu/webbin/serial?id=fpabulletin] | ||
|
|
||
| ```{r} | ||
| #Load in Libraries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you add #| echo: false to the top of this block it will prevent it from showing up in the final rendered version
|
|
||
| ```{r} | ||
| #load in dataset | ||
| metadata <- read.csv("ForeignPolicyBulletinData/metadata.csv") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add the github repository for ForeignPolicyBulletinData as a git submodule. Every time I clone your repo I can't run the code because the files from this rep are not included. See more about git submodules here: https://git-scm.com/book/en/v2/Git-Tools-Submodules
| filter(str_detect(word, "[a-z']$")) %>% | ||
| anti_join(stop_words_custom) | ||
|
|
||
| tidy_fp <- tidy_fp %>% filter(!grepl('[0-9]', word)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another code block that doesn't drive your narrative forward and could be hidden
| if (!file.exists("txt")) prep_word2vec(origin="ForeignPolicyBulletinData", destination="txt", lowercase=T, bundle_ngrams=1) | ||
|
|
||
| if (!file.exists("corpus_vectors.bin")) {model = train_word2vec("txt","corpus_vectors.bin",vectors=200, threads=5, window=12, iter=5, negative_samples=0)} else model = read.vectors("corpus_vectors.bin") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than running this inside your document, where it runs everytime it is being rendered - you could include it in your exploratory data analysis and then just load the vector model with model = read.vectors("corpus_vectors.bin")
For some reason the .bin and .txt files that are necessary to run this code weren't included in your repo? Make sure those are included as they are necessary for others to run your model.
|
|
||
| Bibliography | ||
|
|
||
| Engel, Jeffrey A., Mark Atwood Lawrence, and Andrew Preston. America in the World: A History in Documents from the War with Spain to the War on Terror. Princeton, NJ: Princeton University Press, 2014. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, I know him!
| arrange(desc(beta)) %>% | ||
| group_by(topic) %>% slice(1:10) | ||
|
|
||
| fp3.top.terms %>% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def look into topics over time - I think it might yield some interesting research questions for you.
No description provided.