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. 🔥🔥
This program is writen using JavaScript with Nodejs runtime environment. So you need to install it first.
- Install NodeJs here
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. 😊
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
andfoodon
. Inside this folder, you have to make sure that there are two other folder with nameswikidata
andfoodon
, otherwise the program will crash. - main.js file: It is the main program, it's that file that we'll execute.
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
andoutput/foodon
folders, you will see your cea and cta files. 🤩🤩🤩🤩 magic -
Congratulation, you did it. 🥳🤩