Update utils/target_classifier.py
Browse files
utils/target_classifier.py
CHANGED
@@ -119,7 +119,7 @@ def target_classification(haystack_doc:pd.DataFrame,
|
|
119 |
# Save labels
|
120 |
haystack_doc['Target Label'] = pred_labels
|
121 |
|
122 |
-
|
123 |
# logging.info("Working on action/target extraction")
|
124 |
# if not classifier_model:
|
125 |
# # classifier_model = st.session_state['target_classifier']
|
@@ -137,4 +137,3 @@ def target_classification(haystack_doc:pd.DataFrame,
|
|
137 |
# # df.index += 1
|
138 |
# # # df['Label_def'] = df['Target Label'].apply(lambda i: _lab_dict[i])
|
139 |
|
140 |
-
return haystack_doc
|
|
|
119 |
# Save labels
|
120 |
haystack_doc['Target Label'] = pred_labels
|
121 |
|
122 |
+
return haystack_doc
|
123 |
# logging.info("Working on action/target extraction")
|
124 |
# if not classifier_model:
|
125 |
# # classifier_model = st.session_state['target_classifier']
|
|
|
137 |
# # df.index += 1
|
138 |
# # # df['Label_def'] = df['Target Label'].apply(lambda i: _lab_dict[i])
|
139 |
|
|