Tweet sentiment analysis assignment

Assignment Help JAVA Programming
Reference no: EM132888481

Assignment: Tweet Sentiment Analysis

Introduction

Sentiment analysis is an application of Natural Language Processing (a branch of Artificial Intelli- gence) that is concerned with detecting the sentiment of text. A common dimension for measuring sentiment uses labels POSITIVE, NEGATIVE and NEUTRAL; there are many other possibilities as well (e.g. how strong the sentiment is, how active vs subdued it is, etc). Figure1contains two sample tweets about the current series Falcon and the Winter Soldier, one positive and one negative. Social media is a particularly popular arena for deploying sentiment analysis: companies want to know how their products are being perceived, etc. Consequently, there are many organisations offering apps or services for building them; a screenshot from a demo of such an app is given in Figure2. 2 The earliest and simplest techniques for carrying out sentiment analysis (although this type of approach is still in fact widely used) just carried out keyword matching in the text, based on words from a source of words that have known sentiment (a SENTIMENT LEXICON). Often, these lexi- cons don't have extensive coverage: there are many words with sentiment that aren't included in them, particularly in the case of social media text, where misspellings, abbreviations and slang are common. Consequently, there are other approaches to the task: there's a large class of ma- chine learning3 techniques applied, as well as other techniques like LABEL PrOPAGATION,4 where sentiment labels are propagated through a graph structure.

In this assignment, you'll work with a set of real tweets collected by researchers who developed one of the first approaches to sentiment analysis of tweets,5 and build your own tweet sentiment analyser. Early stages of the assignment just use a keyword-based approach, building up to a simple version of label propagation later.

Data
There are four sorts of data you'll be using.

Tweets Early sentiment analysis work6 included the collection of a set of tweets, some for training a machine learning model for sentiment analysis, and some for evaluating how good that model is. We'll be using that same data; it includes the following information for each tweet:7
» the GOLD POLARITY of the tweet (0 = negative, 2 = neutral, 4 = positive, = not given)
» the ID of the tweet (2087)
» the DATE of the tweet (Sat May 16 23:58:44 UTC 2009)
» the query (lyx)
» the USER that tweeted (e.g. robotickilldozr)
» the TEXT of the tweet (e.g. Lyx is cool)
We'll be ignoring the query. I've written code to read in the CSV file that the data is stored in. The starting sample data you'll be working with consists of 10 tweets, with details as in Figure3.

Basic Sentiment Words There's a widely used subjectivity and sentiment lexicon8 that I've extracted data from. Each line consists of a word, followed by the typical sentiment of that word without any additional context, indicated by the string positive or negative, e.g.

Finegrained Sentiment Words The full lexicon from above also includes information about the strength of the sentiment: weaksubj indicates weak sentiment, and strongsubj strong.

type=weaksubj len=1 word1=abandoned pos1=adj stemmed1=n priorpolarity=negative type=weaksubj len=1 word1=abandonment pos1=noun stemmed1=n priorpolarity=negative type=weaksubj len=1 word1=abandon pos1=verb stemmed1=y priorpolarity=negative type=strongsubj len=1 word1=abase pos1=verb stemmed1=y priorpolarity=negative

Inverse Index The credit-level tasks and above will require constructing a graph, linking tweets that share words. I've constructed some inverse indexes that, for each word, give the IDs of tweets that contain that word.

sleep 1467814783,1467816665,1467818603
thanks 1467811594
falling 1467819022
go 1467810917,1467815924
. . .

Your Tasks

For your tasks, you'll be adding attributes and methods to existing classes given in the code bundle accompanying these specs. Where it's given, you should use exactly the method stub provided for implementing your tasks. Don't change the names or the parameters. You can add more functions if you like.

The two classes provided are Tweet and TweetCollection. The former represents an individual tweet, and the latter a collection of them.

Note that the Tweet class contains two enumerated types: Polarity represents the possible sen- timent polarity values for a tweet (POSitive, NEGative, NEUTral or NONE); and Strength, for the strength of polarity (WEAK, STRONG), for the Distinction-level tasks.

Attachment:- Tweet Sentiment Analysis.rar

Reference no: EM132888481

Questions Cloud

Difference between equal pay and comparable worth : What is the difference between equal pay and comparable worth?
What cautions woud give students about multitasking : What study strategies would you recommend and why? Apply what you have read about learning in this weeks chapter using citations from the textbook.
Create value for shareholders : Imagine that you were a Porsche executive immediately prior to the acquisition of Volkswagen. During a board meeting, a member asked you to explain how Porsche
Assess company corporate social responsibility posture : Assess a company's corporate social responsibility posture. Explain how integrated CSR is in the company's strategy and why.
Tweet sentiment analysis assignment : Attributes and methods to existing classes given in the code bundle accompanying these specs. Where it's given, you should use exactly the method stub provided
Prepare the entries to record Pascual admission : Prepare the entries to record Pascual's admission to or Aguilar's withdrawal from the partnership under each of the following conditions
Describe what research method would use for investigating : What drew you to this method? Why would it be well suited for your hypothetical research? Why would it be well suited for your hypothetical research?
Assess corporate culture of company : Which type of organizational culture does the company have and what is the evidence that prompted you to identify it as such?
Strategy behind your buy-build and ally recommendations : Use the speaker notes of your presentation to explain the strategy behind your buy, build, and ally recommendations.

Reviews

len2888481

5/17/2021 12:19:59 AM

Try to find a suitable expert for this assignment. So try to provide me an A+ solution this time.

Write a Review

JAVA Programming Questions & Answers

  Understand how computers store and manipulate data

Is it important for programmers to understand how computers store and manipulate data? Why or why not?

  Ticketmaster

TICKETMASTER - this class will have: a service charge = $8.00 per ticket, tax = .085 current amount of all tickets sold. Its responsibilities are printing a list of events for sale, looking up an event for a customer, and selling a ticket to the e..

  Create a class rectangle with double attributes length

Create a class Rectangle with double attributes length and width. Provide methods that calculate the rectangle's perimeter and area.

  Program that mimic operations of the inside of an elevator

Unit Title Fundamentals of Operating Systems and Java Programming - Write an algorithm and a program that mimic the operations of the inside of an elevator

  Fixing errors in a java program

You coded the following on line ten of the class MyApplet.java:

  Performance of both the threaded and non-threaded versions

Please modify the Java program by adding threads, and analyze the performance of both the threaded and non-threaded versions.

  Develop a recursive method that writes a given array

Develop a recursive method that writes a given array backward. Consider the last element of the array first.

  Make main method that uses the comparevalues method

Make a main method that uses the compareValues method from question 29 to determine if two integers are the same. Prompt the user for two integers

  Write a program that gets ints from a file

Write a program that gets ints from a file. These are numerators and denominators, and you are to create Fractions.

  Develop and test a small procedural java program

ITECH1000 - develop and test a small procedural Java program and Identify and use the correct syntax of a common programming language

  Implement in java an efficient algorithm

Implement in Java an efficient algorithm that decides if a number x is in the matrix. Please include in the header of your Java program /

  Java program ask user to enter 10-character telephone number

Write a Java program that asks the user to enter a 10-character telephone number in the format XXX-XXX-XXXX. The program should display the telephone number with any alphabetic characters

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd