dgrtwo / tidy-text-mining

Manuscript of the book "Tidy Text Mining with R" by Julia Silge and David Robinson
http://tidytextmining.com
Other
1.32k stars 805 forks source link

Update 05-document-term-matrices.Rmd #110

Closed loafing-cat closed 1 year ago

loafing-cat commented 1 year ago

The textbook uses the GoogleFinanceSource function, but it doesn't seem like Google is supported whatever API this function uses anymore. I found a StackOverFlow thread that suggested to use YahooFinanceSource.

I tried it, and it works. It also appears that the tm.plugin.webmining library is longer supported? Are there perhaps any other alternatives for future readers? Sorry I couldn't propose any new packages, as I'm not a developer and more of a user.

Stack Thread: https://stackoverflow.com/questions/47790148/text-mining-with-tm-plugin-webmining-package-using-googlefinancesource-function

Cran removed package: https://cran.r-project.org/web/packages/tm.plugin.webmining/index.html

juliasilge commented 1 year ago

Related to #62

Unfortunately, I don't believe this change works 😞

If you want to run the examples directly as in the published book, you can clone this repo and use the data we "recorded"; notice load("data/stock_articles.rda"). Bigger picture, we need to figure out what dataset to use here instead. I've thought about the Tidy Tuesday NBER papers maybe.

loafing-cat commented 1 year ago

Yes. I saw that alternative approach to running the code as well.

I mainly wanted to bring this up to your attention, but I wasn't sure what the best way to reach out would be.

Thanks for your work, as well as your co-authors Julia! 😃

juliasilge commented 1 year ago

GitHub is certainly the right spot! Thanks for reading the book and we'll track this in #62.