Spaces:
Sleeping
Sleeping
DrishtiSharma
commited on
Update patentwiz/preprocess_data.py
Browse files
patentwiz/preprocess_data.py
CHANGED
@@ -83,6 +83,7 @@ def download_weekly_patents(year, month, day, logging):
|
|
83 |
)
|
84 |
return False
|
85 |
|
|
|
86 |
def filter_rf_patents(patents, keywords=None, fields=None):
|
87 |
"""
|
88 |
Filters patents based on keywords and specified fields, with parsing for raw patent files.
|
@@ -176,8 +177,6 @@ def filter_rf_patents(patents, keywords=None, fields=None):
|
|
176 |
return filtered_patents
|
177 |
|
178 |
|
179 |
-
|
180 |
-
|
181 |
def extract_patents(year, month, day, logging):
|
182 |
"""
|
183 |
This function reads a patent file in XML format, splits it into individual patents, parses each
|
|
|
83 |
)
|
84 |
return False
|
85 |
|
86 |
+
|
87 |
def filter_rf_patents(patents, keywords=None, fields=None):
|
88 |
"""
|
89 |
Filters patents based on keywords and specified fields, with parsing for raw patent files.
|
|
|
177 |
return filtered_patents
|
178 |
|
179 |
|
|
|
|
|
180 |
def extract_patents(year, month, day, logging):
|
181 |
"""
|
182 |
This function reads a patent file in XML format, splits it into individual patents, parses each
|