Code Monkey home page Code Monkey logo

wikipedia-pagerank's Introduction

Simple English Wikipedia Page Rank

Dependencies:
 - mysql server and client
 - golang
 - Go mysql package (run "go get github.com/go-sql-driver/mysql") to install

Database:
 - To create the tables, create a database called `simple_english_wikipedia` in
   mysql and source the ".sql" files
 - page_essential is a table of all the pages
   - `page_id` is the unique id of the page
   - `page_namespace` is the namespace of the article (like the category)
   - `page_title` is the name of the article (together, the namespace and title form a unique identifier for the page)
 - pl_essential is a table of all the links
   - `pl_from_id` is the id of the source page
   - `pl_to_id` is the id of the target page (turns out there are no repeated pairs of links)

Build Structures:
  - Go to the build_structures directory and run 'go run build_structures.go'"

Compute Pagerank:
  - Copy the generated .out files from the build_structures directory into the
    compute_pagerank directory
  - Run 'go run compute_pagerank.go' to run pagerank on the dataset

wikipedia-pagerank's People

Contributors

manugoyal avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.