-
Notifications
You must be signed in to change notification settings - Fork 0
/
sentiment-analysis.html
executable file
·128 lines (119 loc) · 5.73 KB
/
sentiment-analysis.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noarchive, noodp"/>
<meta name="author" content="Nakul Gulati"/>
<meta name="description" content="Sentiment Analysis project details."/>
<meta name="google-site-verification" content="Fy2OqSbx2NleVgqLfJ_Xos6BH3tTJRe8jZgF3Mepwi8"/>
<link rel="shortcut icon" type="image/png" href="favicon.png"/>
<title>Nakul Gulati</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootswatch-yeti.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap-social.css">
<link rel="stylesheet" href="css/styles.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="navigation">
<nav class="navbar navbar-white navbar-fixed-top">
<div class="container">
<div class="bottom-border">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed pull-left" data-toggle="collapse"
data-target="#navbar"
aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Nakul Gulati</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="gsoc.html">Google Summer of Code 2015</a></li>
<li><a href="http://dl.acm.org/citation.cfm?id=2820981" target="_blank">Publication</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="nakul-gulati-resume.pdf" target="_blank">Resume</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</nav>
</div>
<div id="page-content">
<div class="container">
<div class="row project-row">
<div class="col-lg-10">
<h3 class="zero-top"><strong>Sentiment Analysis</strong></h3>
<p>
The was aimed to predict the polarity (positive/negative) of a given text data using machine
learning and natural language techniques. The sentiment analysis was applied to a movie review
dataset.
</p>
<h4><strong>Implementation Details</strong></h4>
<p>
<strong>Dataset Size:</strong> 2000 records (1000 of each polarity - positive and negative)<br>
<strong>Testing and Cross validation:</strong> 10-30% of the entire dataset
</p>
<h5><strong>Language Model</strong></h5>
<p>
Bigram Frequencies, takes in account only adjacent pair of words. Relationship between words further
apart in the sentence is unaccounted for in this model.
</p>
<h5><strong>Classifiers</strong> (implemented using scikit-learn)</h5>
<ul>
<li>Multinomial Naive Bayesian</li>
<li>Stochastic Gradient Descent</li>
</ul>
<h5><strong>Results</strong></h5>
<p>
The following graphs show mean accuracy, F1 score of positive and negative classes vs training set
size.
</p>
<img class="img-responsive graph" src="img/mnb.jpeg"> <br>
<img class="img-responsive graph" src="img/sgd.jpeg">
<h5><strong>Links</strong></h5>
<ul>
<li><a href="https://github.com/codebuff/sentiment-analysis" target="_blank">Project link</a> on
github.com
</li>
<li><a href="http://scikit-learn.org/" target="_blank">scikit-learn</a> on scikit-learn.org/</li>
</ul>
</div>
</div>
</div>
</div>
<div id="footer">
<div class="container">
<div class="row text-center">
<a href="https://in.linkedin.com/in/nakulgulati" target="_blank" class="btn btn-social-icon btn-linkedin">
<span class="fa fa-linkedin"></span>
</a>
<a href="https://github.com/nakulgulati/" target="_blank" class="btn btn-social-icon btn-github">
<span class="fa fa-github"></span>
</a>
<a href="mailto:[email protected]" target="_top" class="btn btn-social-icon btn-google">
<span class="glyphicon glyphicon-envelope"></span>
</a>
<a href="https://www.facebook.com/nakul.gulati" target="_blank" class="btn btn-social-icon btn-facebook">
<span class="fa fa-facebook"></span>
</a>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/scripts.js"></script>
</body>
</html>