pattern.nlp | R package to perform sentiment analysis | Natural Language Processing library
kandi X-RAY | pattern.nlp Summary
kandi X-RAY | pattern.nlp Summary
R package to perform sentiment analysis for Dutch/French/English and Parts of Speech tagging for Dutch/French/English/German/Spanish/Italian. The pattern.nlp package allows to do the following text mining tasks based on the pattern library.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pattern.nlp
pattern.nlp Key Features
pattern.nlp Examples and Code Snippets
Community Discussions
Trending Discussions on pattern.nlp
QUESTION
In RStudio, I have column containing Dutch sentences which I would like to add a polarity score between -1.0 and +1.0 to via sentiment analysis. I've already tried to use the pattern.nlp
package from jwfijffels, but this didn't work for me. I found an instruction on https://github.com/bnosac/pattern.nlp in which it is explained that - in order for the nlp package to work, you should download a specific version of Python and perform some additional steps. However, these steps are a bit vague to me.
Is there someone who can explain this installation process to me in more detail? Actually, the whole section under "Installation" is a bit of a mystery to me. What should I download specifically?
Where to run the code pip install pattern
? How do I properly set the PATH? It would be much appreciated if someone would guide me trough it step by step.
Or: if someone knows another way to perform sentiment analysis on text, I would of course be open to it, e.g. translating the Dutch sentences to English and then perform the sentiment analysis. Or would such a translation be a bad idea?
Here a set of 6 Dutch sentences.
...ANSWER
Answered 2020-Oct-06 at 09:27Sentiment analysis (using a dictionary) is basically just a pattern matching task. I think this becomes clear when using the tidytext
package and reading the book about it.
So I wouldn't bother with such a complex setup here. Instead, I would convert the dictionary they are using (which is from here) into a data.frame
and then use tidytext
. Unfortunately, the dictionary is stored in XML format and I'm not very familiar with that, so the code looks a little hacky:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pattern.nlp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page