dexay commited on
Commit
b4a960f
·
1 Parent(s): a0ed7fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -156,7 +156,9 @@ if submit and len(x) != 0:
156
 
157
  #lstSentEnc,lstSentEnt,lstSentbilbl
158
 
159
- st.text("Entities detected, Next: Relation detection ...")
 
 
160
 
161
 
162
  # Relation extraction part
@@ -219,7 +221,7 @@ if submit and len(x) != 0:
219
 
220
  for i in range(len(outrelbl)):
221
  if outrelbl[i] != "other":
222
- edccan += [[lstSentEnc[i],lstSentEnt[i][0], lstSentEnt[i][1],lstSentbilbl[i][0]+" "+outrelbl[i][:-7]+" "+lstSentbilbl[i][1]]]
223
 
224
  edccandf = pd.DataFrame(edccan, columns= ["Sentence", "Entity 1", "Entity 2", "Relation"] )
225
 
 
156
 
157
  #lstSentEnc,lstSentEnt,lstSentbilbl
158
 
159
+ st.text("Entities detected.")
160
+ st.text("")
161
+ st.text("Next: Relation detection ...")
162
 
163
 
164
  # Relation extraction part
 
221
 
222
  for i in range(len(outrelbl)):
223
  if outrelbl[i] != "other":
224
+ edccan += [[lstSentEnc[i],lstSentEnt[i][0]+" ["+lstSentbilbl[i][0][2:]+"]", lstSentEnt[i][1]+" ["+lstSentbilbl[i][0][2:]+"]",outrelbl[i][:-7]]]
225
 
226
  edccandf = pd.DataFrame(edccan, columns= ["Sentence", "Entity 1", "Entity 2", "Relation"] )
227