Giter Club home page Giter Club logo

sentiment_analysis_multilingual_corpora's Introduction

Sentiment_Analysis_Multilingual_Corpora

A generic approach to the supervised sentiment analysis of social media content in foreign languages.

The method proposes translating the documents from the original language to English with Google's Neural Translation Model. The resulted texts are then converted to vectors by averaging the vectorial representation of words. Testing the approach with several machine learning classifiers on Swedish, Polish, Slovenian and Croatian Twitter datasets returns up to 86% of classification accuracy on out-of-sample data.

Preprocessing steps include:

  • data source: pre-labelled tweets in Croatian from CLARIN.SI. You can learn about the approach of the tweets annotation from Mozetič, I., Grčar, M., & Smailović, J. (2016).
  • translation: tweets are translated with Cloud Translation API in Python with google_api_translate library more: Translate
  • data preprocessing: removing links, punctuation, digits, emojis and lowering the words.

The methodological set-up is as follows:

You can skip first 4 steps by using pre-calculated vectors: vectors_croatian.csv.

The results with different methods are as in the Table:

model accuracy time
DT 0.749064 0.887692
RF 0.863296 13.895610
SVM 0.861423 11.448037
KNN 0.794007 0.759187
LRM 0.846442 0.057601
ANN 0.855805 2.007087

The methodology is well explained in our paper: Galeshchuk S., Jourdan J., Qiu J. Sentiment Analysis for Multilingual Corpora. 2019. Accepted to the workshop of ACL'2019. Please cite if you use the method.

sentiment_analysis_multilingual_corpora's People

Contributors

gsukr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.