Commit
·
0cbb8b3
1
Parent(s):
3cf2fd4
Update app.py
Browse files
app.py
CHANGED
@@ -5,10 +5,6 @@ model_checkpoint = "MuntasirHossain/bert-finetuned-ner"
|
|
5 |
|
6 |
model = pipeline("ner", model=model_checkpoint, aggregation_strategy="simple")
|
7 |
|
8 |
-
examples = [
|
9 |
-
"Does Chicago have any stores and does Joe live here?",
|
10 |
-
]
|
11 |
-
|
12 |
def ner(text):
|
13 |
output = model(text)
|
14 |
return {"text": text, "entities": output}
|
|
|
5 |
|
6 |
model = pipeline("ner", model=model_checkpoint, aggregation_strategy="simple")
|
7 |
|
|
|
|
|
|
|
|
|
8 |
def ner(text):
|
9 |
output = model(text)
|
10 |
return {"text": text, "entities": output}
|