Spaces:
Runtime error
Runtime error
RamAnanth1
commited on
Commit
•
cddc0f3
1
Parent(s):
7ac37fe
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ model = AutoModelForTokenClassification.from_pretrained("d4data/biomedical-ner-a
|
|
19 |
|
20 |
biomed_ner_pipe = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple") # pass device=0 if using gpu
|
21 |
|
22 |
-
def
|
23 |
raw = biomed_ner_pipe(text)
|
24 |
ner_content = {
|
25 |
"text": text,
|
|
|
19 |
|
20 |
biomed_ner_pipe = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple") # pass device=0 if using gpu
|
21 |
|
22 |
+
def parse_ner(text):
|
23 |
raw = biomed_ner_pipe(text)
|
24 |
ner_content = {
|
25 |
"text": text,
|