Professional Documents
Culture Documents
BACHELOR OF TECHNOLOGY
In
By
www.vmtw.in
2015-2019
VIGNAN’S INSTITUTE OF MANAGEMENT AND TECHNOLOGY
FOR WOMEN
DECLARATION
CERTIFICATE
The results embodied in this project report have not been submitted
in any university for the award of any degree and the results are achieved
successfully.
(EXTERNAL EXAMINER)
ACKNOWLEDGEMENT
We would also like to thank all our professors, lecturers, teaching and
non-teaching staff-members, parents and friends for their motivation and
encouragement which helped us complete the project.
With the grace of Almighty, all the efforts put, have yielded fruitful results.
We express our sincere gratitude towards each and everyone who has been supportive
in the successful completion of this project.
ABSTRACT i
LIST OF FIGURES ii
LIST OF TABLES iii
1. INTRODUCTION 1
1.1. Existing System 1
1.2. Proposed System 2
2. LITERATURE SURVEY 3
2.1. Feasibility Analysis 3
2.2.Related Work 4
2.2.1. A neural probabilistic language model 4
2.2.2. Distributed representations of words and phrases 4
2.2.3. Word alignment modeling 5
2.2.4. Learning Sentiment-specific word embedding 5
3. SYSTEM REQUIREMENTS 6
4. SYSTEM ARCHITECTURE 7
5. SYSTEM DESIGN 8
5.1. Use case Diagram 9
5.2. Class Diagram 10
5.3. Sequence Diagram 11
5.4. Flowchart for User 12
5.5. Flowchart for Admin 13
6. IMPLEMENTATION 14
6.1. Modules 14
6.1.1 . Admin & User Entity 14
6.1.2. Word Level Sentiment Classification 14
6.1.3. Sentiment Level Sentiment Classification 14
6.2. Sample code 15
7. SYSYTEM TESTING 23
7.1. Types of tests 23
7.2. Unit Testing 23
7.3. Integration Testing 24
7.4. Acceptance Testing 24
7.5. Testing Methodologies 24
7.6. Other Testing Methodologies 25
7.7. Testing Strategy 27
7.8. Test Cases 27
8. RESULTS 28
9. CONCLUSIONS 44
10. REFERENCES 45
Sentiment Classification Using Sentiment Embeddings
ABSTRACT
(a) distributional properties of pivots (i.e., common features that appear in both source
and target domains),
(c) geometric properties in the unlabeled documents in both source and target domains.
LIST OF FIGURES
Sequence Diagram 11
Flowchart for User 12
Flowchart for Admin 13
Home page 28
Product reviews 41
LIST OF TABLES
NAME PAGE NO
Test case for user module 27
Test case for admin module 27
1. INTRODUCTION
Prior work on cross-domain sentiment classification use unlabeled data from the
source and the target domains to first learn a low-dimensional embedding for the two
domains. Next, labeled reviews in the source domain are projected onto this embedding.
Finally, a binary sentiment classifier is trained using the projected source domain labeled
training instances.
The embedding learnt by our method enforces three important requirements. First,
a set of domain independent features (also known as pivots) are selected from the source
and target domains which must be mapped as close as possible in the embedded space.
Second, friend closeness and enemy dispersion of the source domain labeled
documents must be preserved. In other words, positively labeled documents must be
embedded closer to each other and far from the negatively labeled documents. Likewise,
negatively labeled documents must be embedded closer to each other and far from the
positively labeled documents.
Third, within each domain, the local geometry among the documents must be
preserved. For example, unlabeled neighbor documents in the source domain must be
embedded closer to each other in the embedded space whereas, unlabeled neighbor
documents in the target domain must be embedded closer to each other in the embedded
space.
2.LITERATURE SURVEY
The purpose of the literature survey is to place the each work in the context of its
contribution to understanding the research problem being studied. It also identifies new
ways to interpret prior research .
Operational Feasibility
Economic Feasibility
Technical Feasibility
They explored a novel bilingual word alignment approach based on DNN (Deep
Neural Network), which has been proven to be very effective in various machine learning
tasks . We describe in detail how we adapt and extend the CD-DNNHMM method
introduced in speech recognition to the HMM based word alignment model, in which
bilingual word embedding is discriminatively learnt to capture lexical translation
information, and surrounding words are leveraged to model context information in
bilingual sentences.
They present a method that learns word embedding for Twitter sentiment
classification. Most existing algorithms for learning continuous word representations
typically only model the syntactic context of words but ignore the sentiment of text. This
is problematic for sentiment analysis as they usually map words with similar syntactic
context but opposite sentiment polarity, such as good and bad, to neighboring word
vectors. It address this issue by learning sentiment specific word embedding (SSWE).
3. SYSTEM REQUIREMENTS
Database : MYSQL
RAM : 4 GB
4. SYSTEM ARCHITECTURE
5. SYSTEM DESIGN
UML DIAGRAMS
Class Diagram
Sequence Diagram
Registration
Login
Search Product
Logout
This diagram explains about the various actors who interact with the system
and view the products , give reviews and analyze the reviews . Each user has their
specific function represented by oval shaped . It gives the functionality of the
system .
User Admin
Department of CSE 9 VMTW
username
username
password
password
This diagram gives the details of the attributes and operations that can
be performed by each entity of the system . The system can be accessed only after
successful authentication .
SERVICE
Department of CSE 10 VMTW
Sentiment Classification Using Sentiment Embeddings
DATABASE
This diagram shows the interaction between the user , admin and database
which are shown in timelines .
This flowchart shows the actions performed by the user upon authorized login.
USER login
Unauthorized
Check
user
Search Products
Give Reviews
View Reviews
End process
This flowchart shows the actions performed by the admin upon authorized login.
ADMIN LOGIN
Yes No
Check Unauthorized
End process
6 . IMPLEMENTATION
6.1. MODULES:
This application that is designed is split into modules where module handles their
respective tasks . The modules are :
The users view the Uploaded product details and give reviews to that products and
users expose their emotions by the way of emojis. Admin upload the products under
the products domains for the users. Admin can view all uploaded products .Here
admin is view domains the sentiment analysis of the Users reviews and emojis.
A sentiment embedding should have the ability to map positive words into close
vectors, to map negative words into close vectors, and to separate positive words and
negative words apart. We conduct word level sentiment classification to further
investigate the effectiveness of sentiment embeddings in capturing similarities
between sentiment words.
<%@page import="network.DbConnection"%>
<%@page import="java.io.InputStreamReader"%>
<%@page import="java.io.BufferedReader"%>
<%@page import="java.io.InputStream"%>
<%@page import="java.util.regex.Matcher"%>
<%@page import="java.util.regex.Pattern"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.util.logging.Level"%>
<%@page import="java.io.FileNotFoundException"%>
<%@page import="java.util.Scanner"%>
<%@page import="java.io.File"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
Statement st4=null;
Connection con4=null;
try {
while (scanner.hasNextLine()) {
System.out.println(timesArray);
String text=null;
String productname;
String productid;
String reviews;
String InputStream;
String domains;
String topic;
String ffid;
String filename;
String username;
session.setAttribute("domain", domain);
ResultSet rs3;
while(rs3.next())
{ productid = rs3.getString("productid");
productname = rs3.getString("title");
domains = rs3.getString("domain");
reviews = rs3.getString("review");
text = reviews;
System.out.println("&&&&&&&&&&&&&&&"+regexp[i]);
st4=(Statement) con3.createStatement();
int x=st4.executeUpdate(sql);
if(x!=0){
System.out.println("not inserted");
else{
System.out.println("uninserted");
}}
con3.close();
st3.close();
st4.close(); }}
ex.printStackTrace();
response.sendRedirect("checkingn3.jsp");
%>
<%@page import="network.DbConnection"%>
<%@page import="java.io.InputStreamReader"%>
<%@page import="java.io.BufferedReader"%>
<%@page import="java.io.InputStream"%>
<%@page import="java.util.regex.Matcher"%>
<%@page import="java.util.regex.Pattern"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.util.logging.Level"%>
<%@page import="java.io.FileNotFoundException"%>
<%@page import="java.util.Scanner"%>
<%@page import="java.io.File"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%
Integer count=0;
Statement st4=null;
Connection con4=null;
try {
while (scanner.hasNextLine()) {
System.out.println(timesArray);
String text=null;
String productname;
String productid;
String reviews;
String InputStream;
String domains;
String topic;
String ffid;
String filename;
String username;
session.setAttribute("domain", domain);
ResultSet rs3;
while(rs3.next())
{ productid = rs3.getString("productid");
productname = rs3.getString("title");
domains = rs3.getString("domain");
reviews = rs3.getString("review");
text = reviews;
System.out.println(regexp[i]);
System.out.println("&&&&&&&&&&&&&&&"+regexp[i]);
st4=(Statement) con3.createStatement();
int x=st4.executeUpdate(sql);
if(x!=0){
System.out.println("not inserted");
else{
System.out.println("uninserted");
}}
con3.close();
st3.close();
st4.close(); }}
ex.printStackTrace();
response.sendRedirect("positiverev1.jsp");
%>
7. SYSTEM TESTING
System Implementation is the process of having systems personnel check out and
put newly developed package into use, train users how to interact with it, install the new
application and construct any files of data needed to use the package.
Unit testing
Integration testing
Acceptance testing
Unit testing involves the design of test cases that validate that the internal
program logic is functioning properly, and that program inputs produce valid outputs. All
decision branches and internal code flow should be validated. It is the testing of individual
software units of the application .it is done after the completion of an individual unit
before integration. This is a structural testing, that relies on knowledge of its construction
and is invasive.
Unit tests perform basic tests at component level and test a specific business
process, application, and/or system configuration. Unit tests ensure that each unique path
User Acceptance Testing is a critical phase of any project and requires significant
participation by the end user. It also ensures that the system meets the functional
requirements.
UNIT TESTING
INTEGRATION TESTING
Integration Testing is defined as a type of testing where software modules are
integrated logically and tested as a group. A typical software project consists of multiple
software modules, coded by different programmers. Integration Testing focuses on
checking data communication amongst these modules.
SYSTEM TESTING
System testing ensures that the entire integrated software system meets
requirements. It tests a configuration to ensure known and predictable results. An example
of system testing is the configuration oriented system integration test. System testing is
based on process descriptions and flows, emphasizing pre-driven process links and
integration points.
PERFORMANCE TESTING
FUNCTIONAL TESTING
Functional tests provide systematic demonstrations that functions tested are available
as specified by the business and technical requirements, system documentation, and user
manuals.
White Box Testing is a testing in which in which the software tester has knowledge
of the inner workings, structure and language of the software, or at least its purpose. It is
purpose. It is used to test areas that cannot be reached from a black box level.
Black Box Testing is testing the software without any knowledge of the inner
workings, structure or language of the module being tested. Black box tests, as most other
kinds of tests, must be written from a definitive source document, such as specification or
requirements document, such as specification or requirements document. It is a testing in
which the software under test is treated, as a black box .you cannot “see” into it. The test
provides inputs and responds to outputs without considering how the software works.
8. RESULTS
HOME PAGE :
This is home page of our application which is started using web browser , which
includes menus admin where like HOMEPAGE , USER,ADMIN
FORM 1 :
This login page is for admin where admin need to enter correct username and
password to login .
REPORT 1:
This page includes all the actions performed by admin such as adding domains ,
products and graph analyzation of reviews .
FORM 2:
Here admin is adding kitchen appliances as domain and previously added domains
are also listed below i.e., laptops ,Books .
FORM 3:
After adding domains , admin upload the products with fields such as product
name , price , description and product image .
REPORT 2:
Admin can also view all product list been with fields such as product name , price
, description uploaded with their associated description .
REPORT 3:
Admin can view the user search history i.e., at what time a user searched for a
product .
FORM 4:
FORM 5:
REPORT 4:
Once user logins ,user can search for a product and give Reviews for the products
.
FORM 6:
REPORT 5:
REPORT 6:
REPORT 7:
PRODUCT REVIEWS :
All the reviews given by a user can be viewed for a particular product in this
page .
REPORT 8:
REPORT 9:
9. CONCLUSION
that must be satisfied by an embedding that can be used to train a cross domain
sentiment classification method. We evaluated the performance of the individual
constraints as well as their combinations using a benchmark dataset for cross domain
sentiment classification. Our experimental results show that some of the combinations of
the proposed constraints . Unlike previously proposed embedding
learning approaches for cross-domain sentiment classification, our proposed method uses
the label information available for the source domain reviews, thereby learning
embeddings that are sensitive to the final task of application, which is sentiment
classification.
10.REFERENCES
10. N. Yang, S. Liu, M. Li, M. Zhou, and N. Yu, “Word alignment modeling with
context dependent deep neural network,” in Proc. 51st Annu. Meeting Assoc.
Comput. Linguistics, 2013, pp. 166–175.