Spaces:
Sleeping
Sleeping
initial commit
Browse files
app.py
CHANGED
@@ -66,12 +66,12 @@ def main():
|
|
66 |
with st.spinner(text="Extracting relations..."):
|
67 |
# pair entities to predict their relations
|
68 |
entity_pair_df = entity_pairing(sentence, ner_predictions[0])
|
69 |
-
st.write('entity paired')
|
70 |
|
71 |
# relation extraction
|
72 |
re_predictions, re_raw_outputs = ie.re_model.predict(entity_pair_df['output'].tolist())
|
73 |
entity_pair_df['prediction'] = re_predictions
|
74 |
-
st.write(re_predictions)
|
75 |
|
76 |
with st.spinner(text="Building graph..."):
|
77 |
# build graph
|
|
|
66 |
with st.spinner(text="Extracting relations..."):
|
67 |
# pair entities to predict their relations
|
68 |
entity_pair_df = entity_pairing(sentence, ner_predictions[0])
|
69 |
+
# st.write('entity paired')
|
70 |
|
71 |
# relation extraction
|
72 |
re_predictions, re_raw_outputs = ie.re_model.predict(entity_pair_df['output'].tolist())
|
73 |
entity_pair_df['prediction'] = re_predictions
|
74 |
+
# st.write(re_predictions)
|
75 |
|
76 |
with st.spinner(text="Building graph..."):
|
77 |
# build graph
|