-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7eec3db
commit a7992b4
Showing
3 changed files
with
28 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,7 @@ | |
*.csv | ||
|
||
# vscode files | ||
.vscode | ||
.vscode | ||
|
||
# mac files | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
### Instructions to generate csv from i2b2 Obesity Challenge xml files | ||
|
||
First gain access to dataset. Once you have the access, you need to download the following xml files and rename exactly as below: | ||
1. Download Training Data: Obesity Training Records (XML) as rename as `text1.xml` | ||
2. Download Training Data: The second set of Obesity Training Records (XML) as rename as `text2.xml` | ||
3. Download Training Data: Intuitive Annotations for Training Records (XML) as rename as `label1.xml` | ||
4. Download Training Data: Annotations for the second set of Obesity Training Records (XML) as rename as `label2.xml` | ||
5. Download Training Data: Addendum to the Intuitive Annotations for Training Records (XML) as rename as `label3.xml` | ||
6. Download Test Data: Test Records (XML) as rename as `test_text.xml` | ||
7. Download Test Data: Ground Truth for Intuitive Judgments on Test Data (XML) as rename as `test_label.xml` | ||
First gain access to dataset. Once you have the access, you need to download the following xml files mentioned below: | ||
1. Download Training Data: Obesity Training Records (XML). | ||
2. Download Training Data: The second set of Obesity Training Records (XML). | ||
3. Download Training Data: Intuitive Annotations for Training Records (XML). | ||
4. Download Training Data: Annotations for the second set of Obesity Training Records (XML). | ||
5. Download Training Data: Addendum to the Intuitive Annotations for Training Records (XML). | ||
6. Download Test Data: Test Records (XML). | ||
7. Download Test Data: Ground Truth for Intuitive Judgments on Test Data (XML). | ||
|
||
Move all the files inside the `scripts` folder. | ||
Move all the files inside the `downloads` folder at the root of the project. | ||
|
||
Install the dependencies first using `pip install -r requirments.txt` | ||
Install the dependencies using `pip install -r requirments.txt` | ||
|
||
Run `python gen_csv.py` to generate `train.csv` and `test.csv`. They will be in the `data` folder. | ||
Run `python gen_csv.py` to generate `train.csv` and `test.csv`. | ||
They will be in the `data` folder at the root of the project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters