Update app.py
Browse files
app.py
CHANGED
@@ -221,7 +221,7 @@ if submit and len(x) != 0:
|
|
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][
|
225 |
|
226 |
edccandf = pd.DataFrame(edccan, columns= ["Sentence", "Entity 1", "Entity 2", "Relation"] )
|
227 |
|
|
|
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][1][2:]+"]",outrelbl[i][:-7]]]
|
225 |
|
226 |
edccandf = pd.DataFrame(edccan, columns= ["Sentence", "Entity 1", "Entity 2", "Relation"] )
|
227 |
|