Text Mining and Word Cloud

 

 

 

Step 1: Create a text file
• Find a transcript of a presidential speech (or any speech at least 1 page
long/800 words) and save it as a text file.
For example: Donald Trump Rally Speeches from Kaggle: https://www.kaggle.com/christianlillelund/donaldtrumps-rallies
Step 2 : Install and load the required packages in R
• tm # for text mining
• SnowballC # for text stemming
• Wordcloud # word-cloud generator
• RColorBrewer # color palettes
Step 3 : Text mining
• load the text in R
• Load the data as a corpus
• Cleaning the text
Step 4 : Build a term-document matrix
Step 5 : Generate the Word cloud
Step 6 : Plot word frequencies (use bar plot)
Step 7 : Save and submit your work as follows:
A. Save each of the scripts you have used in R as a text file
(Project_Assignment_Scripts.txt)
2 | Page
B. Take screenshots of all steps in R, and make sure you put them in your MSWord report. (Word_Crowd_Report.docx)
C. Summarize what you have understood by looking at the resulting word
crowd and the bar chart.
D. Format your word document professionally (use a cover page also).
E. Submit your work on itslearning using the Project_Assignment_Part1 link. (2
files: 1 text file containing your scripts and 1 MS-word file showing your word
crowd and bar chart with your analysis of the speech). You can also submit
the text file of the speech you saved in step 1.
Project-2: Popular (Most Frequently Used) R Packages (15%)
A. Create a PowerPoint presentation discussing some of the most popular R
Packages (at least 5 different R packages) and explain what each one is used
for.
B. Show how to install each of those packages and provide related examples of
how you used them in R (take screenshots and make it a part of your slide
presentation).
C. Make sure your PowerPoint presentation has a title page
D. Submit your PowerPoint presentation file on itslearning using
Project_Assignment_Part2 link.
E. You will present your work to the class via screen share on Microsoft Teams
(you will be assigned 10 minutes maximum).
*Use itslearning only to submit your work, DO NOT use e-mail.

Sample Solution

re critical to his theory regarding the scope of administrative prerogative, specifically concerning the complex politics of resistance. John Locke describes prerogative as the ‘power to act according to discretion, for the public good, without the prescription of the law, and sometimes even against it’; therefore stating that the executive is capable of taking actions that lie beyond the given legal framework of the constitution or written laws, in the case that their actions may advance the common good of the people, and of society as a whole. Ensuring their use for the advancement of the common good of the people and the understanding that prerogative powers are not imbued as a natural right, Locke emphasises that these powers are accompanied by the right to resist unlawful government by the people. It is for this reason that for many theorists, Locke is viewed more critically as the ‘origin of our contemporary tangle of lawless emergency governance’. Locke’s theory allows for governments, and executive bodies to step outside of the law in order to deal with public concern or emergency; “where the legislative and executive power are in distinct hands, (as they are in all moderated monarchies, and well-framed governments) there the good of the society requires that several things should be left to the discretion of him that has the executive power”; therefore one may show an understanding of prerogative as a liminal concept: occupying an “in-between” space for the legislature and the executive, it is this liminality that elucidates prerogative’s resilience. These tensions or ambiguities structure contemporary discussions of prerogative and, similarly primary literature focusing on emergency powers more broadly. Despite the emphasis placed on the executive as the primary body to carry out the motive principle of the given prerogative, one may argue in concordance with Lockean theory that the scope for such prerogative is at the behest of the infrastructure of the legislature, thus allowing for the body to play a key regulatory role. Henceforth, it must be taken into consideration that Locke refrains from calling prerogative executive power, rather Locke explicitly makes prerogative into a right of nature. In spite of Locke’s emphasis on the scope of prerogative right under an executive body, it may be said that such power is not an inherent right, therefore allowing the deliberative assemblies to close in on executive individuals through the use of authority to make laws for a political entity through the use of primary legislation. In this way the balance of power between the two branches of government allows one to maintain Locke’s theory, in contempt with the belief that such a system would endowing the executive with too much power relative to the legislature. However, it is critical that we consider the basis for Locke’s literature, as set in its given historical context; therefore in order to critically examine and thoroughly interpret Locke’s assessment of the scope o

This question has been answered.

Get Answer
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, Welcome to Compliant Papers.