Spaces:
Running
Running
pragnakalp
commited on
Commit
•
9dfaab7
1
Parent(s):
0fb3603
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,6 @@ repo = Repository(
|
|
48 |
|
49 |
cwd = os.getcwd()
|
50 |
bert_ner_model = os.path.join(cwd)
|
51 |
-
print("1",bert_ner_model,"<<<<<<<<<<<<<<<<<<")
|
52 |
|
53 |
Entities_Found =[]
|
54 |
Entity_Types = []
|
@@ -84,9 +83,7 @@ def generate_ner(article):
|
|
84 |
if article.strip():
|
85 |
text = "Input sentence: "
|
86 |
text += article
|
87 |
-
print("2",bert_ner_model,"<<<<<<<<<<<<<<<<<<")
|
88 |
model_ner = Ner(bert_ner_model)
|
89 |
-
# model_ner = Ner()
|
90 |
|
91 |
output = model_ner.predict(text)
|
92 |
print(output)
|
|
|
48 |
|
49 |
cwd = os.getcwd()
|
50 |
bert_ner_model = os.path.join(cwd)
|
|
|
51 |
|
52 |
Entities_Found =[]
|
53 |
Entity_Types = []
|
|
|
83 |
if article.strip():
|
84 |
text = "Input sentence: "
|
85 |
text += article
|
|
|
86 |
model_ner = Ner(bert_ner_model)
|
|
|
87 |
|
88 |
output = model_ner.predict(text)
|
89 |
print(output)
|