Git Product home page Git Product logo

Comments (11)

juliasilge avatar juliasilge commented on August 20, 2024 1

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.

juliasilge avatar juliasilge commented on August 20, 2024 1

You could clone the whole repo, put it on your local machine, and use devtools::install_local()?

from tidytext.

dgrtwo avatar dgrtwo commented on August 20, 2024 1

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.

znmeb avatar znmeb commented on August 20, 2024 1

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.

randomgambit avatar randomgambit commented on August 20, 2024

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.

juliasilge avatar juliasilge commented on August 20, 2024

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.

randomgambit avatar randomgambit commented on August 20, 2024

you mean cloning the whole tidytext package?

from tidytext.

randomgambit avatar randomgambit commented on August 20, 2024

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.

randomgambit avatar randomgambit commented on August 20, 2024

@dgrtwo awfully wonderful! (sentiment = ?)

thanks!

from tidytext.

randomgambit avatar randomgambit commented on August 20, 2024

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.

github-actions avatar github-actions commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.