Giter VIP home page Giter VIP logo

on-fire's Introduction

On-Fire

CS project for Zhuo Leng, Weijia Li, Xinzhu Sun, and Xingyun Wu

Scripts for our program

  1. module.py is our main script
  2. review1.py is one of our modules that contains functions to crawl and analyse reviews
  3. crawling.py is another module to crawl all product information and generate csvs

For Natural Language Process

Program 1

Before run:

  1. install pip (in case you don't have it)
  2. command: [sudo] pip install textblob
  3. command: python -m textblob.download_corpora

To run: python freq.py folder/

Please note if you want to add words that you don't want to ignore during analysis, simply add it into ignorelist at line 40, but make it uppercase as the others.

If you only want the frequency of a word in the current doc, it means you just want the value of TF instead of TF * IDF, go to line 21, replace it with sentence "return tf(word, doc) * 1.0"

Program 2

To run: python similarity.py file1.txt file2.txt

To run: python simliarity_2.py

User Interface

Before run: go to the folder named "user_interface"

To run: python3 manage.py runserver

activate your web browser, then go to http://127.0.0.1:8000/

Note: All results are saved to shorten runing time

on-fire's People

Contributors

weijia1995 avatar xywu-soc avatar xinzhusun avatar

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.