Spaces:
Running
Running
Update utils/vulnerability_classifier.py
Browse files
utils/vulnerability_classifier.py
CHANGED
@@ -75,7 +75,7 @@ def vulnerability_classification(haystack_doc:pd.DataFrame,
|
|
75 |
the number of times it is covered/discussed/count_of_paragraphs.
|
76 |
"""
|
77 |
logging.info("Working on vulnerability Identification")
|
78 |
-
haystack_doc['
|
79 |
# haystack_doc['PA_check'] = haystack_doc['Policy-Action Label'].apply(lambda x: True if len(x) != 0 else False)
|
80 |
|
81 |
# df1 = haystack_doc[haystack_doc['PA_check'] == True]
|
|
|
75 |
the number of times it is covered/discussed/count_of_paragraphs.
|
76 |
"""
|
77 |
logging.info("Working on vulnerability Identification")
|
78 |
+
haystack_doc['Vulnerability Label'] = 'NA'
|
79 |
# haystack_doc['PA_check'] = haystack_doc['Policy-Action Label'].apply(lambda x: True if len(x) != 0 else False)
|
80 |
|
81 |
# df1 = haystack_doc[haystack_doc['PA_check'] == True]
|