add adaptation mitigation
Browse files
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 =
|
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 |
|