juliasilge / tidytext

Text mining using tidy tools :sparkles::page_facing_up::sparkles:
https://juliasilge.github.io/tidytext/
Other
1.18k stars 182 forks source link

afinn url #172

Closed eddyzhang2018 closed 4 years ago

eddyzhang2018 commented 4 years ago

Hi Julia,

it looks like the afin data url has changed:

if use lexicon_afin() will encounter following error:

my_lex <- lexicon_afinn()

Do you want to download: Name: AFINN-111 URL: http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6010 License: Open Database License (ODbL) v1.0 Size: 78 KB (cleaned 59 KB) Download mechanism: https

1: Yes 2: No

Selection: 1 trying URL 'https://www2.imm.dtu.dk/pubdb/views/edoc_download.php/6010/zip/imm6010.zip' Warning in download.file(url = "https://www2.imm.dtu.dk/pubdb/views/edoc_download.php/6010/zip/imm6010.zip", : cannot open URL 'https://www2.imm.dtu.dk/pubdb/views/edoc_download.php/6010/zip/imm6010.zip': HTTP status was '404 Not Found' Error in download.file(url = "https://www2.imm.dtu.dk/pubdb/views/edoc_download.php/6010/zip/imm6010.zip", : cannot open URL 'https://www2.imm.dtu.dk/pubdb/views/edoc_download.php/6010/zip/imm6010.zip'`

they move the website to http://www2.imm.dtu.dk/pubdb/pubs/6010-full.html, so the downloading now host at http://www2.imm.dtu.dk/pubdb/edoc/imm6010.zip.

Any chance to update the url in this function?

Thank you.

EmilHvitfeldt commented 4 years ago

This issue originate in textdata and have been fixed. Related to https://github.com/EmilHvitfeldt/textdata/issues/31.

You can download the version with

remotes::install_github("EmilHvitfeldt/textdata")
Screen Shot 2020-05-03 at 10 21 30 AM
juliasilge commented 4 years ago

Thank you so much @EmilHvitfeldt for your quick handling of the underlying problem! 🙏

ThanhDatIU commented 2 years ago

Hello @juliasilge,

I got the same problem even when using lexicon_afinn() running in DataCamp workspace with the latest version 4.1.2.

Screen Shot 2022-01-30 at 12 08 25 pm

Any chance to update the URL in this function?

Thank you.

juliasilge commented 2 years ago

@ThanhDatIU The function works with the current CRAN version of textdata (0.4.1) so I believe we are all good to go with that.

github-actions[bot] commented 2 years ago

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.