HHansi commited on
Commit
bf5e273
1 Parent(s): 0c8e9d4

initial commit

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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