3.1.1 helathcare tests
@@ -15,12 +15,10 @@ class AssertionTests(unittest.TestCase):
nlu.auth(SPARK_NLP_LICENSE,AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,JSL_SECRET)
data = 'Patient has a headache for the last 2 weeks and appears anxious when she walks fast. No alopecia noted. She denies pain'
- res = nlu.load('en.med_ner.clinical en.assert').predict(data, drop_irrelevant_cols=False, metadata=True, ) # .predict(data)
+ res = nlu.load('en.med_ner.clinical en.assert').predict(data,metadata=True, ) # .predict(data)
print(res.columns)
- for c in res :
- print(res[c])
-
+ for c in res :print(res[c])
print(res)
if __name__ == '__main__':
AssertionTests().test_entities_config()
