Code Monkey home page Code Monkey logo

feature-based-opinion-mining's Introduction

Feature-based-opinion-mining

Need for this kind of project:

  • Since the evolution of social networks, people have started to express their opinions in the form of the blogs or facebook posts or tweets starting from the products people buy to the presidential candidate they support.
  • When searched for a particular product on the web, the current day search engines show the list of websites which gives the features of the product and their prices. But, the users can be given much more info about the product using the reviews about the searched product.
  • Thus, a new type of search engine can be designed which will not only retrieve facts, but will also enable the retrieval of opinions of the users about the product.

Use cases:

  • A search engine is created which, when searched for a product, gives the highlighted features of the product and some of the helpful reviews (instead of the user scrolling through all the reviews to know about the product).
  • Consider the scenario when the product sellers want to know which of their product features stood it in the market or which of their product features were not liked by majority of their users, this kind of analysis is very helpful.

About the authors:

Magdalini Eirinaki, Shamita Pisal, Japinder Singh (Computer Engineering Department, San Jose State University, One Washington Square, San Jose, CA 95192, United States)

Steps to run the code:

  • All the codes are written in Python 3.5.2.
  • The sample review files is uploaded in the repository. All the review files to be analyzed are assumed to be in this format although the python code (main.py) can be modified to read the review file according to its format.
  • All the requirements are installed before running the code by running the command in the terminal: pip3 install -r requirements.txt.
  • To run the algorithms on the sample review file, just type the following command in the terminal: python3 main.py Datasets/CanonG3.txt.
  • Running the above command creates 3 files:
    • featureScore.txt which contains all the potential features about the product and their scores.
    • positiveReviews.txt which contains all the positive reviews as classified by the algorithm such that a positive review at line i expresses much positive opinion than a review at line j (j > i).
    • negativeReviews.txt which contains all the negative reviews such that a negative review at line i expresses much negative opinion than a review at line j (j > i).
    • neutralReviews.txt which contains all the neutral reviews.

Further steps:

  • This project is just the implementation of the paper in the 'Project Summary' directory. Improvements can be made in various parts especially in the feature extraction module.
  • People are highly welcome to contribute to the project.

feature-based-opinion-mining's People

Contributors

esh-b avatar saivineeth1074 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

feature-based-opinion-mining's Issues

findfeatures.py问题

整体运行起来 bug太多了。困、。while 是无限循环
if (count < len(x) and (x[e][1] == "NN" or "JJ") and (x[count][1] == "NN" or "JJ")):
这个失效啊

File readability

The "WithNGrams.py" file is not human-readable. Please make the variables and the method names legible along with any other optimizations (if possible).

3 output files not being created

I tried working on this.
The 3 main files are not being created :-
featureScore.txt - contains all the potential features about the product and their scores.
positiveReviews.txt - contains all the positive reviews as classified by the algorithm.
negativeReviews.txt - which contains all the negative reviews

Is there any way this issue can be solved?

Review Dataset

How to classify a review file which is not in the defined manner (to classify any type of review file)

NO OUTPUT FILES CREATED

Hi ,

i ran the main.py file, the code executed properly but it did not create any featureScore.txt, positiveReviews.txt, negativeReviews.txt files.

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.