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

[LLM pipeline] MinHash generation for deduplication #295

Merged
merged 23 commits into from
Jul 18, 2023
Merged

[LLM pipeline] MinHash generation for deduplication #295

merged 23 commits into from
Jul 18, 2023

Conversation

mrchtr
Copy link
Contributor

@mrchtr mrchtr commented Jul 13, 2023

This component generates MinHashes of text.
The MinHash similarity will be used to determine duplicated text passages.

Copy link
Contributor

@PhilippeMoussalli PhilippeMoussalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mrchtr :)

Looks good overall and thanks for including tests. We should do this for the other components.

Left a few minor comments.

components/minhash_generator/src/main.py Outdated Show resolved Hide resolved
# Split text into words
words = text.split()

# Generate shingles of size 3 using nltk's ngrams function
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason for the having a fixed size of 3? should this be a component parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Size of 3 is common. But I agree that is indeed better to make it configurable.

components/minhash_generator/src/main.py Outdated Show resolved Hide resolved
components/minhash_generator/src/main.py Outdated Show resolved Hide resolved
components/minhash_generator/tests/component_test.py Outdated Show resolved Hide resolved
Copy link
Contributor

@PhilippeMoussalli PhilippeMoussalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mrchtr!

Copy link
Member

@RobbeSneyders RobbeSneyders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mrchtr!
Can you just update the docker file to match the latest version?

components/minhash_generator/Dockerfile Outdated Show resolved Hide resolved
Co-authored-by: Robbe Sneyders <robbe.sneyders@gmail.com>
@RobbeSneyders RobbeSneyders merged commit 7d43515 into ml6team:main Jul 18, 2023
satishjasthi pushed a commit to satishjasthi/fondant that referenced this pull request Jul 21, 2023
This component generates MinHashes of text. 
The MinHash similarity will be used to determine duplicated text
passages.

---------

Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>
Co-authored-by: Robbe Sneyders <robbe.sneyders@gmail.com>
Hakimovich99 pushed a commit that referenced this pull request Oct 16, 2023
This component generates MinHashes of text. 
The MinHash similarity will be used to determine duplicated text
passages.

---------

Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>
Co-authored-by: Robbe Sneyders <robbe.sneyders@gmail.com>
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.

3 participants