Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working filtering pipeline #31

Merged
merged 14 commits into from
Nov 24, 2023
Merged

Working filtering pipeline #31

merged 14 commits into from
Nov 24, 2023

Conversation

eiennohito
Copy link
Collaborator

No description provided.

The primary update in this commit is the changes in the document processing logic in `DeduplicateParagraphs.scala`. Instead of directly returning the filtered document, the method `processDocumentParts` now returns an array of `ProcessedDocument`s, containing both the document text and the filter that was applied. The `filterDuplicateDocs` method has been updated to accommodate this change.

Additionally, fix invalid .

The `DataframeUtils.scala` is renamed as `BuilderSyntax.scala`, and its methods have been updated to reflect the more general use beyond just DataFrames.

In `Pipeline.scala`, the `splitByFilteredParagraphs` method is introduced to splitting paragraphs into other documents based on certain criteria.

In the keyword filter lists, lines starting with `#` characters are treated as comments and are not used to filter.

Overall, these changes should improve the accuracy and efficiency of the document processing pipeline.
@eiennohito eiennohito merged commit 60783e2 into main Nov 24, 2023
2 checks passed
@eiennohito eiennohito deleted the feature/arseny/full-filtering branch November 24, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant