VU-sentiment-lexicon | Python library providing sentiment lexicons | Natural Language Processing library
kandi X-RAY | VU-sentiment-lexicon Summary
kandi X-RAY | VU-sentiment-lexicon Summary
This is a library to load and query sentiment lexicons in English, Dutch, German, Italian, Spanish and French. This library is required to use other components like the VU-polarity-tagger or the VU-sentiment-aggregator.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Load lexicon from file .
- Load lexicons .
- Show the available lexicons .
- Initialize lexicon .
- Load the resource file .
- Convert a word to KAF
VU-sentiment-lexicon Key Features
VU-sentiment-lexicon Examples and Code Snippets
Community Discussions
Trending Discussions on VU-sentiment-lexicon
QUESTION
I'm trying to import the following lexicon in R, to be used with text mining packages such as quanteda
, or to export it as a list or data frame:
https://github.com/opener-project/VU-sentiment-lexicon/tree/master/VUSentimentLexicon/IT-lexicon
The format is XML-LMF. I could not find any way to parse such a format with R.
(see https://en.wikipedia.org/wiki/Lexical_Markup_Framework)
As a workaround I tried to use the XML
package, but the structure is a bit different from usual XML, and I did not manage to parse all the nodes.
ANSWER
Answered 2019-Jan-25 at 13:32I managed to make it work using the xml2
package. Here's my code:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install VU-sentiment-lexicon
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