Views
No views yet
1
2import spacy
3
4# Load the model
5
6nlp = spacy.load("MakPr016/radiology-ner-model")
7
8# Process text
9text = "The cardiac silhouette is within normal limits. No pleural effusion."
10doc = nlp(text)
11
12# Extract entities
13
14for ent in doc.ents:
15print(f"{ent.text} - {ent.label_}")
16