zmbfeng commited on
Commit
af23936
1 Parent(s): 49fa3c4

use master and secondary documents terminology

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -272,14 +272,18 @@ if 'paragraph_sentence_encodings' in st.session_state:
272
  for i, (similarity_score, commonality_score, paragraph) in enumerate(
273
  st.session_state.paragraph_scores[:5]):
274
  #st.write("top_three_sentences: ", paragraph['top_three_sentences'])
275
-
276
  for top_sentence in paragraph['top_three_sentences']:
277
- st.write("hyppthesis: ", top_sentence[1])
 
 
278
  st.write(contradiction_detection(st.session_state.premise,top_sentence[1]))
279
  #print(top_sentence[1])
280
  # st.write(f"Similarity Score: {similarity_score}, Commonality Score: {commonality_score}")
281
  # st.write("top_three_sentences: ", paragraph['top_three_sentences'])
282
- st.write("Original Paragraph: ", paragraph['original_text'])
283
  #A Member will be considered Actively at Work if he or she is able and available for active performance of all of his or her regular duties
 
 
284
  # st.write("Modified Paragraph: ", paragraph['modified_text'])
285
 
 
272
  for i, (similarity_score, commonality_score, paragraph) in enumerate(
273
  st.session_state.paragraph_scores[:5]):
274
  #st.write("top_three_sentences: ", paragraph['top_three_sentences'])
275
+ st.write("paragarph number ***", i)
276
  for top_sentence in paragraph['top_three_sentences']:
277
+ st.write("master document page number ", paragraph['original_text']['page_num'])
278
+ st.write("master document sentence: ", top_sentence[1])
279
+ st.write("secondary document sentence: ", st.session_state.premise)
280
  st.write(contradiction_detection(st.session_state.premise,top_sentence[1]))
281
  #print(top_sentence[1])
282
  # st.write(f"Similarity Score: {similarity_score}, Commonality Score: {commonality_score}")
283
  # st.write("top_three_sentences: ", paragraph['top_three_sentences'])
284
+ #st.write("Original Paragraph: ", paragraph['original_text'])
285
  #A Member will be considered Actively at Work if he or she is able and available for active performance of all of his or her regular duties
286
+ # A Member will be considered as inactive at Work if he or she is able and available for active performance of all of his or her regular duties
287
+ #A Member shall be deemed inactive at Work if he or she is capable and available to perform all of his or her regular responsibilities.
288
  # st.write("Modified Paragraph: ", paragraph['modified_text'])
289