Skip to content

Simple javascript program that generate a boilerplate (some csv files such as cea.csv and cta.csv) that facilitate the annotation using wikidata and foodon

Notifications You must be signed in to change notification settings

dilane3/csv-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV Annotations File Generator

This program will help you to generate a boilerplate of your final csv files that you will use to make annotation easily using wikidata and foodon. 🔥🔥

Pre-requisites

This program is writen using JavaScript with Nodejs runtime environment. So you need to install it first.

Prepare the program

Assuming that you have already clone the repository on your local machine, you need to install some dependancies first before trying to run the program.

To install dependancies, you need to open the folder of the program into a terminal and run the following command:

using npm

npm install

using yarn

yarn install

After that, all dependancies of this program will be installed. 😊

Description

Let's describe the architecture of the project.

  • Dataset folder: This folder will contain all your clean files. The name of these files is very important, so make sure that the name has not been modified during your cleaning process. (example: KNSR2190_1.csv is a good name)
  • Output folder: This folder will contain your final cea and cta files for both wikidata and foodon. Inside this folder, you have to make sure that there are two other folder with names wikidata and foodon, otherwise the program will crash.
  • main.js file: It is the main program, it's that file that we'll execute.

Usage

Now let's start... 😎

  • Add your clean files into the dataset folder.

  • Open the terminal and place yourself at the root of the project.

  • Execute the command below to launch the program and generate your cea and cta files for both wikidata and foodon.

    node main.js
  • Now look inside the ouput/wikidata and output/foodon folders, you will see your cea and cta files. 🤩🤩🤩🤩 magic

  • Congratulation, you did it. 🥳🤩

About

Simple javascript program that generate a boilerplate (some csv files such as cea.csv and cta.csv) that facilitate the annotation using wikidata and foodon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published