Skip to content

Commit

Permalink
Merge branch 'main' into logical_operators
Browse files Browse the repository at this point in the history
  • Loading branch information
parisa-zahedi authored Jul 25, 2024
2 parents eb4e213 + 80e00cd commit 265740a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion dataQuest/filter/document_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def filter_document(self, document: Document) -> bool:
return False
return True


class DecadeFilter(DocumentFilter):
"""
Filter documents by decade.
Expand Down
3 changes: 2 additions & 1 deletion dataQuest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from dataQuest.filter.document_filter import (YearFilter,
TitleFilter,
DocumentFilter)

from dataQuest.filter.document_filter import (AndFilter,
OrFilter,
NotFilter,
Expand Down Expand Up @@ -101,7 +102,6 @@ def load_filters_from_config(config_file: Path) -> AndFilter:
compound_filter = AndFilter(filters)
return compound_filter


def get_keywords_from_config(config_file: Path) -> List[str]:
"""
Extract keywords from a JSON configuration file.
Expand Down Expand Up @@ -183,6 +183,7 @@ def save_filtered_articles(input_file: Any, article_id: str,

output_fp = os.path.join(output_dir, input_file.base_file_name() + '_' +
str(article_id) + '.json')

print('output_fp', output_fp)
with open(output_fp, "w", encoding=ENCODING) as json_file:
json.dump(data, json_file, indent=4)
Expand Down

0 comments on commit 265740a

Please sign in to comment.