zmbfeng commited on
Commit
61abe59
1 Parent(s): d240c29

added nltk.download('punkt_tab')

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -91,6 +91,7 @@ if 'is_initialized' not in st.session_state:
91
  st.session_state['is_initialized'] = True
92
 
93
  nltk.download('punkt')
 
94
  nltk.download('stopwords')
95
  # print("stop words start")
96
  # print(stopwords.words('english'))
@@ -256,7 +257,7 @@ def contradiction_detection_for_sentence(cd_query, cd_query_line_number):
256
  st.write("secondary document line number", cd_query_line_number)
257
  st.write("secondary document sentence: ", cd_query)
258
  st.write("commonality score",top_sentence[2])
259
- st.write(contradiction_detection_result)
260
  # st.write(contradiction_detection(st.session_state.premise, top_sentence[1]))
261
 
262
  else:
 
91
  st.session_state['is_initialized'] = True
92
 
93
  nltk.download('punkt')
94
+ nltk.download('punkt_tab')
95
  nltk.download('stopwords')
96
  # print("stop words start")
97
  # print(stopwords.words('english'))
 
257
  st.write("secondary document line number", cd_query_line_number)
258
  st.write("secondary document sentence: ", cd_query)
259
  st.write("commonality score",top_sentence[2])
260
+ # st.write(contradiction_detection_result)
261
  # st.write(contradiction_detection(st.session_state.premise, top_sentence[1]))
262
 
263
  else: