Git Product home page Git Product logo

tiki007 / shiny-couscous Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fgpullen/shiny-couscous

0.0 1.0 1.0 191.98 MB

Features Grouping of notes Auto-save Markdown editor Easy publishing/sharing of groups or individual notes. Local encryption. Quick filtering Full screen writing Simple UI Running locally Clone the repo bundle install npm install bundle exec rake bower:install grunt rails s Open your browser to http://localhost:3000 In the bottom left, click on "Sign in or Register" or "Account" (if signed in), and make sure you're using the correct server. You can use a production server here a

Python 19.08% Shell 0.10% HTML 60.55% Jupyter Notebook 20.26%

shiny-couscous's Introduction

WebStructure project @ CMU LTI

The idea is analyzing web pages' structures for a better crawler which extracts contents more intelligently.

Crawler

This module crawls sites with annotated groups using simple BFS strategy. crawl_data is the folder for raw html files test_data is the folder that contains files for experiments You can ignore others

Cluster

This module extracts Xpaths and calculate features for clustering and classification. HITS idea is also implemented in this module.

  • For clustering algorithm, the following six python files are most important:

page.py: data structure for one web page

pages.py: data structure for page collection of one website.

kmeans.py&wkmeans.py

Those two take feature matrix as input and generate clusters as output.
wkmeans means weighted kmeans.

pageCluster.py: Main function. The number of clusters are heuristically assigned in its main function. To implement clustering, use command:

python pageCluster.py dataset algo feature train(cv)

dataset is the parameter select from [zhihu,stackexchange,rottentomatoes,medhelp,asp]
algo is the parameter select from [kmeans,wkmeans]
features select from [tf-idf,log-tf-idf,binary]
train(cv)* select from [train,cv]

  • output: evluation metric and visulization for train

Batch file: cv_results.sh & train_results.sh
Try all possible parameter settings and write results to files.

visualization.py
Utilizing t-sne to reduce high-dimenstion vectors to two dimensions for visualization.

Xpath

Test python libarary for xpath extraction.

shiny-couscous's People

Contributors

fgpullen avatar kylegao91 avatar rivercold avatar

Watchers

 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.