pragnakalp commited on
Commit
dc3f0d2
1 Parent(s): 5f72f45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -48,6 +48,8 @@ repo = Repository(
48
 
49
  cwd = os.getcwd()
50
  bert_ner_model = os.path.join(cwd)
 
 
51
  Entities_Found =[]
52
  Entity_Types = []
53
  k = 0
@@ -82,9 +84,9 @@ def generate_ner(article):
82
  if article.strip():
83
  text = "Input sentence: "
84
  text += article
85
- # print(">>>>>>>>>>>",bert_ner_model,"<<<<<<<<<<<<<<<<<<")
86
- # model_ner = Ner(bert_ner_model)
87
- model_ner = Ner()
88
 
89
  output = model_ner.predict(text)
90
  print(output)
 
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 = []
55
  k = 0
 
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)