Comments (11)
This sentiment lexicon is in the development version here on GitHub but not yet on CRAN. Be sure to install from GitHub:
devtools::install_github("juliasilge/tidytext")
from tidytext.
You could clone the whole repo, put it on your local machine, and use devtools::install_local()
?
from tidytext.
I've got a short term workaround! You could read the sentiments table from GitHub:
sentiments <- readr::read_csv("https://raw.githubusercontent.com/juliasilge/tidytext/master/data-raw/sentiments.csv")
(Or download that file and read it locally). At that point you could use sentiments %>% filter(lexicon == "mcdonald")
in place of using get_sentiments()
.
from tidytext.
IIRC you can download the tarball and install from the command line with R CMD install, but I haven't tried it recently.
from tidytext.
argh!! I cannot use the development version because I cannot install devtools (I am on a firewalled machine)... any workaround here? thanks @juliasilge !
from tidytext.
Oh bummer... We are preparing a new version for CRAN in the near future but probably not for another several weeks (before our book gets published).
from tidytext.
you mean cloning the whole tidytext
package?
from tidytext.
anyway... it seems I also need to install rtools
to make devtool
work. Not possible as I don't have admin rights. I can only wait until you push the new version on cran! sob sob
thanks @juliasilge :)
from tidytext.
@dgrtwo awfully wonderful! (sentiment = ?)
thanks!
from tidytext.
actually the solution by @dgrtwo works perfectly fine. A quick follow up. Which version of the dictionary are you using? I see on https://www3.nd.edu/~mcdonald/Word_Lists.html that there has been an update in 2015. In any case, keep up the good work, this package is G R E A T
from tidytext.
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
from tidytext.
Related Issues (20)
- Filter Harmful Words? HOT 3
- Parts_of_speech Expected Behavior HOT 3
- unnest_tokens on large corpus with limited RAM HOT 3
- Error in qr.lm(thetasims[, k], qx) HOT 7
- Release tidytext 0.3.4 HOT 2
- Make hunspell a Suggested dependency? HOT 2
- scales::wrap_format() does not work with scale_*_reordered HOT 4
- Change to new cran checks badge URL HOT 3
- include algo of tidy autostemmer HOT 1
- Release tidytext 0.4.0 HOT 1
- Release tidytext 0.4.1 HOT 1
- Support tidy.BTM
- [Accessibility issue] Vignettes lacks alt= in plots HOT 1
- Replacement of `token = "tweets"` HOT 3
- tidytext idf negative values due to wrong counting of number of documents HOT 2
- Error in cast_dfm() function HOT 2
- Speed improvement for bind_tf_idf HOT 5
- Disregard this issue. HOT 1
- Switch over to using native pipe
- Release tidytext 0.4.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tidytext.