Coder Social home page Coder Social logo

massivedataset's Introduction

MASSIVEDATASET README

Introduction

This project focuses on processing and managing language data. It answers two main questions:

  1. Python3 Development Environment Setup: Set up a Python3 development environment, install relevant dependencies, and build a project structure similar to PyCharm's. Import a massive dataset and generate language-specific Excel files (en-xx.xlsx) using specific fields (id, utt, and annot_utt). Recursive algorithms are not used to optimize performance.

  2. Working with Files: Generate separate JSONL files for English (en), Swahili (sw), and German (de) datasets with test, train, and dev partitions. Create a single large JSON file showcasing translations from English to other languages (xx) for the training dataset.

Prerequisites

Before running the project, ensure you have the following prerequisites installed:

  • Python 3.x
  • pip (Python package manager)

Installation

You can install the required Python libraries/packages using the following command:

pip install jsonlines
pip install json
pip install os
pip install pandas
pip install sys

Project Structure

The project structure should resemble the following:

project-root/
│
├── 1.1/data/
│       └── excel
│
├── main.py
├── q2.py
│
│
├── en-xx.xlsx (Generated)
├── en_train.jsonl (Generated)
├── sw_train.jsonl (Generated)
├── de_train.jsonl (Generated)
│   └── translations.json (Generated)
│
├── README.md
├── generator.sh
└── other_files...

Running the Project

Question 1

Place your dataset file (input_data.xlsx) inside the data/ directory.

Run the following command to execute Question 1:

./generate.sh

The script will generate language-specific Excel files (en-xx.xlsx) in the results/ directory.

Question 2

Make sure you have the English (en), Swahili (sw), and German (de) JSONL files (e.g., en-US.jsonl, de-DE.jsonl, sw-KE.jsonl) in the project directory.

Run the following command to execute Question 2(shell command):

python q2.py

The script will generate separate JSONL files for English, Swahili, and German in the results/ directory. Additionally, it will create a large JSON file (translations.json) showcasing translations from English to other languages.

Run the following command to upload files to google drive:

python googledrive.py

massivedataset's People

Contributors

kolwabrad avatar sydney-nyanchoga avatar rajan-okita avatar winniewanjohi avatar jeremy-riu 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.