Spaces:
Sleeping
Sleeping
Update utils/target_classifier.py
Browse files
utils/target_classifier.py
CHANGED
@@ -114,7 +114,7 @@ def target_classification(haystack_doc:pd.DataFrame,
|
|
114 |
predictions = classifier_model(list(haystack_doc.text))
|
115 |
|
116 |
# Get labels for predictions
|
117 |
-
pred_labels =
|
118 |
|
119 |
# Save labels
|
120 |
haystack_doc['Target Label'] = pred_labels
|
|
|
114 |
predictions = classifier_model(list(haystack_doc.text))
|
115 |
|
116 |
# Get labels for predictions
|
117 |
+
pred_labels = gettarget_labels(predictions)
|
118 |
|
119 |
# Save labels
|
120 |
haystack_doc['Target Label'] = pred_labels
|