Code Monkey home page Code Monkey logo

norsentlex's Introduction

NorSentLex

Overview

This repo contains a Norwegian sentiment lexicon of positive and negative words, semi-automatically created on the basis of the English lexicon compiled by Hu and Liu (2004).

Cite

When using this lexicon, please cite the following paper:

@InProceedings{BarTouOvrVel19,
  author = {Barnes, Jeremy and Touileb, Samia and {\O}vrelid, Lilja and Velldal, Erik},
  title = {Lexicon information in neural sentiment analysis: a multi-task learning approach},
  booktitle = {Proceedings of the 22nd Nordic Conference on Computational Linguistics},
  year = 2019,
  url = "https://www.aclweb.org/anthology/W19-6119/", 
  address = {Turku, Finland}
}

Code for replicating the experiments in the paper can be found here: https://github.com/ltgoslo/mtl_lex

Process

We briefly describe the process of generating the lexicon(s) below, for further details see Barnes et al. (2019).

The English lexicon of Hu and Liu (2004) was machine-translated and then manually inspected and corrected. If an English word had several senses that could be translated into different Norwegian words, these were manually added to the translations. All multi-word expressions were omitted, and only single-word translations have been included. Some words were also removed either because we found they did not fit into the positive or negative categories, or because we could not find an appropriate translation. We also removed all words listed as both positive and negative.

This process resulted in a Norwegian sentiment lexicon containing a collection of 3,917 negative and 1,601 positive words. Similarly to the English lexicon, the resulting Norwegian lexicon contains a mix of word classes and inflected forms. However, using the Norwegian full-form lexicon SCARRIE, we expanded the entries to include all inflected forms, resulting in a lexicon of 14,839 negative words and 6,103 positive words. The translated lexicon is made available here: https://github.com/ltgoslo/mtl_lex . The fullform lexicon is made available in this current repository.

Structure

We make available fullform and lemma lexicons. The repository is structures as follows:

Lemma
├── Lemma_ADJECTIVE_Negative_lexicon.txt
├── Lemma_ADJECTIVE_Positive_lexicon.txt
├── Lemma_NOUN_Negative_lexicon.txt
├── Lemma_NOUN_Positive_lexicon.txt
├── Lemma_PARTICIPLE_ADJECTIVE_Negative_lexicon.txt
├── Lemma_PARTICIPLE_ADJECTIVE_Positive_lexicon.txt
├── Lemma_VERB_Negative_lexicon.txt
├── Lemma_VERB_Positive_lexicon.txt

Fullform
├── Fullform_Negative_lexicon.txt
├── Fullform_Positive_lexicon.txt
├── POS_Fullform_lexicon_Negative.json
├── POS_Fullform_lexicon_Positive.json

The Lemma folder contains positive and negative lexicons for lemmas based on their POS, i.e. separate files for verbs, nouns, adjectives, and participle adjectives.

The Fullform folder contains positive and negative lexicons such that the ".txt" files are list of words, while the ".json" files provide additional information about the POS of each word.

References:

M. Hu and B. Liu
Mining and summarizing customer reviews
Proceedings of the 10th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining
Seattle, USA
2004

J. Barnes, S. Touileb, L. Øvrelid and E. Velldal
Lexicon information in neural sentiment analysis: a multi-task learning approach
Proceedings of the 22nd Nordic Conference on Computational Linguistics
Turku, Finland
2019 URL: https://www.aclweb.org/anthology/W19-6119/

norsentlex's People

Contributors

erikve avatar samiatouileb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.