Code Monkey home page Code Monkey logo

pig-latin's Introduction

Pig Latin Script

Overview

This Pig Latin script is designed to process the Enron Email Dataset and perform three key tasks:

  1. Word Count: Calculate the frequency of each word used in the email dataset, by tokenizing the email content to extract individual words.

  2. Line Count: Determine the total number of lines in the dataset.

  3. Unique Email Address Count: Identify and count the unique email addresses found in the emails using regular expressions.

Dataset

The Enron Email Dataset contains approximately 0.5 million email messages from about 150 users, primarily senior management of Enron. The dataset was collected and prepared by the CALO Project and made public by the Federal Energy Regulatory Commission during its investigation.

Running the Script

To run the Pig Latin script:

  1. Ensure you have Apache Pig installed and configured on your system.

  2. Modify the script to specify the correct path to the Enron Email Dataset.

  3. Execute the script using the following command:

pig -x local your_script.pig
  1. The results will be stored in separate output files: one for word count, one for line count, and one for unique email address count.

References

pig-latin's People

Contributors

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