awacke1 commited on
Commit
8ee5e9c
·
1 Parent(s): 5c6f4f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- #print(start_with_searchTermLOINC )
80
- #print(start_with_searchTermSNOMED )
81
- #print(start_with_searchTermCQM)
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] )