GithubHelp home page GithubHelp logo

andre-luis-lopes-da-silva / sentiment-analysis-of-the-copom-document-using-vader Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 329 KB

A sentiment analysis of the last document of the meeting of the Brazilian central bank's Copom (Monetary Policy Committee) was performed using the Vader (Valence Aware Dictionary and sEntiment Reasoner)

License: MIT License

Jupyter Notebook 100.00%

sentiment-analysis-of-the-copom-document-using-vader's Introduction

Sentiment-Analysis-of-the-Copom-document-using-Vader

A sentiment analysis of the last document of the meeting of the Brazilian central bank's Copom (Monetary Policy Committee) was performed using the Vader (Valence Aware Dictionary and sEntiment Reasoner)

Sentiment analysis is the process of identifying and categorising the opinions expressed by human utterances through computational techniques using natural language processing. There are several tools to do this. Sentiment analysis is an application of the Natural Language Processing (NLP), which is the subfield of artificial intelligence that deals with computational algorithms which supports computers and humans’ interactions.

The Vader (Valence Aware Dictionary for sEntiment Reasoning), is a tool for sentiment analysis to find good predictive accuracy to measure emotional state. Vader lexicon was originally developed by C.J hutto based on rule-based methods, The Vader doesn’t need to be trained as it is built on a lexicon with standard sentiment library. The sentiment lexicon used by Vader is validated as gold standard tested by humans.

The aim of this study was analyze the sentiment of the document of the meeting of Copom using Vader.

First, the data were extracted from the PDF file and these data were cleaned, removing the noise texts. The items of this document were isolated. The sentiment analysis was performed in each selected items. As vader only works in the English language, a Vader's fork called LeIA (Léxico para Inferência Adaptada) was used to avoid having to translate the texts. The results of the sentiments (i.e. positive, neutral and negative) obtained per each item were plotted in barplot using the seaborn module. Like this example:

Tabela exemplo

As conclusion, the score 'compound' was presented in a table per each item, like this:

Tabela exemplo

We can say that the macroeconomic scenario for Brazil is still not very favorable according this sentiment analysis.

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.