bnosac / pattern.nlp

R package to perform sentiment analysis and Parts of Speech tagging for Dutch/French/English/German/Spanish/Italian
Other
67 stars 17 forks source link

PyhtonInR not available anymore #14

Open MatthBogaert opened 3 years ago

MatthBogaert commented 3 years ago

PythonInR is not available on cran anymore and is not compatible with newest version of R. Is it possible to make the package work with reticulate instead? The package worked before (using steps that you have on your github page), but cannot find PythonInR anymore. Anyone who has this problem?

jwijffels commented 3 years ago

If you change the 4 lines at https://github.com/bnosac/pattern.nlp/blob/master/R/sentiment.R#L29 and the 7 lines at https://github.com/bnosac/pattern.nlp/blob/master/R/postagging.R#L69 to the reticulate equivalent, you are ready to go. If you just need the parts of speech tagging, I suggest you move on to using R package udpipe (https://cran.r-project.org/package=udpipe or https://github.com/bnosac/udpipe).