Giter Club home page Giter Club logo

topkapi's Introduction

Topkapi

This is a C++ implementaion of "Topkapi" algorithm from the following work:

Ankush Mandal, Cary Jiang, Anshumali Shrivastava, and Vivek Sarkar. Topkapi: Parallel and Fast Sketches for Finding Top-K Frequent Elements. In Neural Information Processing Systems(NIPS), Montreal, Canada, 2018.

This implementation finds Top-K frequent words from text data. It supports multi-threaded execution using OpenMP and distributed computation using MPI.

Prerequisites

  • GNU Compiler Collection (GCC)
  • OpenMPI
The code was developed and tested using GCC 6.2.0 and OpenMPI 1.10.3 on Red Hat Enterprise Linux Server release 6.5 (Santiago).

Quick Start on Linux

  1. Download the code from Github: git clone https://github.com/ankushmandal/topkapi.git
  2. Go to src directory and create the executable using make command
  3. For details on usage, type ./topkapi -h or ./topkapi --help
  4. A sample slurm script for running the program on cluster is given in sample_slurm_script directory under src

Data

Instructions on preprocessing any text data is given in utils directory. The experiments on the paper were carried out using two data sets:

  • Gutenberg dataset from Project Gutenberg. Useful instructions on downloading the data set can be found at Nico's Blog.
  • Puma datasets under "Wikipedia" section from here.

topkapi's People

Contributors

ankushmandal avatar

Stargazers

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

Watchers

 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.