Programming Homework Help

California University of Management and Sciences Text Analytics Exercise

 

  1. Create a chart showing the words with the greatest contribution to positive or negative sentiment in the AP articles. Show all the code from the necessary packages untll you can produce the chart. Comment your code line by line.
  2. Create charts showing the terms with the highest tf-idf from each of four selected inaugural addresses. Eliminate the ? term. Show all the code from the necessary packages untll you can produce the chart. Comment your code line by line.
  3. Create charts showing over time how the frequency of the terms god, america, foreign, immigrant, union, constitution, and freedom have changed over time. Each term should be in it’s own chart. Include a smoothed regression line with a confidence interval. Label your axes. Label the chart with the word in question. Comment your code line by line. (Note the lower case initial letters of proper nouns. Does this make a difference in your analysis?)

Please add your commentary, in your own words, on what the graphs are showing. Related materials and code for references can be found here: https://www.tidytextmining.com/index.html Chapter 5

I need the rmd file so that I can execute the code on my mac and pdf of the output you executed. Always repeat the question you are answering. Thank you!