Update app.py
Browse files
app.py
CHANGED
@@ -156,7 +156,9 @@ if submit and len(x) != 0:
|
|
156 |
|
157 |
#lstSentEnc,lstSentEnt,lstSentbilbl
|
158 |
|
159 |
-
st.text("Entities detected
|
|
|
|
|
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]
|
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 |
|