Coder Social home page Coder Social logo

assignment0_dsw's Introduction

assignment0_dsw

How to run the code:

  1. Install and Set up Spark on the local machine
  2. Download the wiki.txt file as an input
  3. Download the python file (name wordcount.py) from Canvas where it contain the main code -- did not update the file name but it contains bigrams
  4. Run the code: spark-submit wordcount.py wiki.txt output_bigramprb1 output_bigramcount1
  5. The output script will be two text files: one containing the bigram probability and one another containing bigrams counts 5.1 the bigram probability file shows each bigram along with its probability 5.2 the bigram counts file shows how each bigram is presented with the number of count

Link to output for Bigram Count file https://drive.google.com/file/d/1UJG1XBB5i-IDn6MvC2_mdkEmL-KBB36T/view?usp=sharing

Link to output for Bigram Probability file https://drive.google.com/file/d/1H5YCstLnpsAReifCQk30hl5Js-oHOI2I/view?usp=sharing

Link to output for Word Count file https://drive.google.com/file/d/1ACSW877aWQeYvEDG0C9qM8ctqTEbqBvV/view?usp=sharing

assignment0_dsw's People

Contributors

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