This Python3 development project establishes an environment for data processing and file manipulation. It structures a PyCharm project, imports a massive dataset, and accomplishes three main tasks. It creates language-specific files and a comprehensive translation dataset ensuring clean file management with GitHub integration.
- Build a Python3 project with the structure of projects in PyCharm.
- Import the MASSIVE Dataset mentioned in the Data File above. In this dataset, the pivot language is English. Given that all the ids of the languages are matching, generate an
en-xx.xlxsfile for all the languages using the id, utt, and annot_utt. - For English (en), Swahili (sw), and German (de), generate separate
jsonlfiles with test, train, and dev datasets respectively. - Generate one large
jsonfile showing all the translations from English (en) to xx with id and utt for all the train sets. Pretty print your json file structure.
functions.py: Contains functions to answer the questions for generating files from Excel to Jsonl.main.py: The main program file that loads, processes, and analyzes data.
Excel_Files: The output excel files that contain id's of all languages.JSONL_Files: Thejsonlfiles that contain the pretty printedjsonlformatted for each language.JSONL_Output: Contains DE, SW, and ENjsonlfiles.translations.json: Largejsonfile showing all the translations from en to xx with id and utt for all the train sets.
To run the project, follow these steps:
- Activate the Virtual Environment: Activate the Python virtual environment with
source venv/bin/activateto work within an isolated environment for this project. - Run the Main Script: Use the command
python main.pyto execute the project's main Python script, which performs various data processing tasks. - Check Output: After running the script, find the generated files in the project directory, including Excel, JSON, and CSV files, depending on the tasks completed.
- 137192 Eddy Bogonko
- 137938 Martin Mwangi
- 136603 Jane Daisy
- 146013 Amanda Karani
- 139991 Glen Musa
This project currently does not contain any licenses.