ppsingh commited on
Commit
e86aae8
1 Parent(s): b1a66f3

add adaptation mitigation

Browse files
Files changed (1) hide show
  1. utils/adapmit_classifier.py +1 -1
utils/adapmit_classifier.py CHANGED
@@ -69,7 +69,7 @@ def adapmit_classification(haystack_doc:pd.DataFrame,
69
  False, axis=1)
70
  # we apply Netzero to only paragraphs which are classified as 'Target' related
71
  df1 = haystack_doc[haystack_doc['cond_check'] == True]
72
- df1 = temp.reset_index(drop=True)
73
  df = haystack_doc[haystack_doc['cond_check'] == False]
74
  df = df.reset_index(drop=True)
75
 
 
69
  False, axis=1)
70
  # we apply Netzero to only paragraphs which are classified as 'Target' related
71
  df1 = haystack_doc[haystack_doc['cond_check'] == True]
72
+ df1 = df1.reset_index(drop=True)
73
  df = haystack_doc[haystack_doc['cond_check'] == False]
74
  df = df.reset_index(drop=True)
75