Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ from transformers import AutoTokenizer
|
|
14 |
tokenizer = AutoTokenizer.from_pretrained("bert-base-cased")
|
15 |
dataset = datasetLOINC.map(lambda examples: tokenizer(examples["Description"]), batched=True)
|
16 |
JSONOBJ2=dataset['train'][0]
|
|
|
17 |
|
18 |
sw = datasetLOINC.filter(lambda example: example["Description"].startswith("Allergy"))
|
19 |
len(sw)
|
@@ -76,9 +77,9 @@ def fn( text1, text2, num, slider1, slider2, single_checkbox,
|
|
76 |
start_with_searchTermSNOMED = datasetSNOMED.filter(lambda example: example["Description"].startswith('Hospital')) #Hospital
|
77 |
start_with_searchTermCQM = dataseteCQM.filter(lambda example: example["Description"].startswith('Telephone')) #Telephone
|
78 |
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
|
83 |
#print(start_with_searchTermLOINC["train"][0] )
|
84 |
#print(start_with_searchTermSNOMED["train"][0] )
|
|
|
14 |
tokenizer = AutoTokenizer.from_pretrained("bert-base-cased")
|
15 |
dataset = datasetLOINC.map(lambda examples: tokenizer(examples["Description"]), batched=True)
|
16 |
JSONOBJ2=dataset['train'][0]
|
17 |
+
print(JSONOBJ2)
|
18 |
|
19 |
sw = datasetLOINC.filter(lambda example: example["Description"].startswith("Allergy"))
|
20 |
len(sw)
|
|
|
77 |
start_with_searchTermSNOMED = datasetSNOMED.filter(lambda example: example["Description"].startswith('Hospital')) #Hospital
|
78 |
start_with_searchTermCQM = dataseteCQM.filter(lambda example: example["Description"].startswith('Telephone')) #Telephone
|
79 |
|
80 |
+
print(start_with_searchTermLOINC )
|
81 |
+
print(start_with_searchTermSNOMED )
|
82 |
+
print(start_with_searchTermCQM)
|
83 |
|
84 |
#print(start_with_searchTermLOINC["train"][0] )
|
85 |
#print(start_with_searchTermSNOMED["train"][0] )
|