lcampillos commited on
Commit
4de8da2
1 Parent(s): 0204cf5

Added data in json format

Browse files
Files changed (4) hide show
  1. clinical_trials.py +19 -1
  2. dev.json +0 -0
  3. test.json +0 -0
  4. train.json +0 -0
clinical_trials.py CHANGED
@@ -1,3 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import datasets
2
 
3
 
@@ -8,7 +26,7 @@ _LICENSE = "Creative Commons Attribution 4.0 International"
8
 
9
  _VERSION = "1.1.0"
10
 
11
- _URL = "https://huggingface.co/datasets/plncmm/clinical_trials/resolve/main/"
12
  _TRAINING_FILE = "train.conll"
13
  _DEV_FILE = "dev.conll"
14
  _TEST_FILE = "test.conll"
 
1
+ '''
2
+ Procesar así los datos en el terminal:
3
+
4
+ import clinical_trials
5
+
6
+ from clinical_trials import ClinicalTrials
7
+
8
+ train_json = ClinicalTrials._generate_examples('train.json','train.conll')
9
+
10
+ x = json.dumps([item for item in train_json])
11
+
12
+ outFile = open("train.json",'w',encoding="utf8")
13
+ print(x,file=outFile)
14
+ outFile.close()
15
+
16
+ '''
17
+
18
+
19
  import datasets
20
 
21
 
 
26
 
27
  _VERSION = "1.1.0"
28
 
29
+ _URL = "https://huggingface.co/datasets/lcampillos/CT-EBM-ES"
30
  _TRAINING_FILE = "train.conll"
31
  _DEV_FILE = "dev.conll"
32
  _TEST_FILE = "test.conll"
dev.json ADDED
The diff for this file is too large to render. See raw diff
 
test.json ADDED
The diff for this file is too large to render. See raw diff
 
train.json ADDED
The diff for this file is too large to render. See raw diff