Skip to content
 
 

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSONComparison

Introduction comparing JSONL files and creating a output file with common fields

This repository contains a Python script for comparing JSONL (JSON Lines) files and generating Excel reports summarizing the differences, the data used in this project is directly from the MASSIVE dataset. It also contains some shell script which imitates flags by prompting the user for input and processing it to determine the options chosen by the user. This tool is particularly useful for analyzing multilingual data where you have a "pivot" JSONL file and want to compare it against multiple other JSONL files to identify matching data.

Getting Started

Follow these steps to set up and use the JSONL File Comparison Tool:

Prerequisites

  1. Make sure you have Python 3.x installed on your system.

  2. Download test files and store in the same directory as the project. [MASSIVE dataset](URL.

  3. Install the required Python libraries by running the following command:

    pip install jsonlines openpyxl
    
  4. clone the repository

    git clone https://github.com/Jay254p/JSONComparison.git
      

Usage

  1. Navigate to the project directory '''bash cd JSONComparison'

  2. Run the script file using the command: '''bash ./generator.sh' on your terminal

The script starts by displaying a list of pivot files and prompts the user to select one by entering a number.

  1. The script displays a list of JSON files and prompts the user to either select specific files by entering their numbers or choose "all" to select all files.

  2. The script will process the comparisons and create Excel files in the "output" directory.

Error Logging

If any errors occur during execution, they will be stored in the "error.log" file, this file will be created automatically.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages