Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More of an improvement point but really great material ! #7

Open
moedaaboul opened this issue Feb 4, 2021 · 1 comment
Open

More of an improvement point but really great material ! #7

moedaaboul opened this issue Feb 4, 2021 · 1 comment

Comments

@moedaaboul
Copy link

moedaaboul commented Feb 4, 2021

1-) It would be helpful to have the below submission as an accepted option:

tidy_talks %>%
anti_join(get_stopwords(), by = "word") %>%
count(word, sort = TRUE)

Suggested response is:

tidy_talks %>%
anti_join(get_stopwords()) %>%
count(word, sort = TRUE)

2-) It is also not too clear how to run "get_stopwords()" as it doesn't come straight from the tidytext package but rather from the stopwords package.

@juliasilge
Copy link
Owner

Thanks so much @moedaaboul!

As a clarification, the function get_stopwords() does come from tidytext but it requires stopwords to be installed.

library(tidytext)
get_stopwords()
#> # A tibble: 175 x 2
#>    word      lexicon 
#>    <chr>     <chr>   
#>  1 i         snowball
#>  2 me        snowball
#>  3 my        snowball
#>  4 myself    snowball
#>  5 we        snowball
#>  6 our       snowball
#>  7 ours      snowball
#>  8 ourselves snowball
#>  9 you       snowball
#> 10 your      snowball
#> # … with 165 more rows

Created on 2021-02-04 by the reprex package (v1.0.0)

I'll see what we can do about adding more accepted options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants