-
Notifications
You must be signed in to change notification settings - Fork 162
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
Implementing Bloom Annotator #978
base: dev
Are you sure you want to change the base?
Conversation
@shahrokhDaijavad @touma-I added notebook for python runtime and also put a link to it from README file https://github.com/ian-cho/data-prep-kit/blob/dev/transforms/universal/bloom/bloom_python.ipynb |
@ian-cho I haven't had time to test the notebook, but I just realized that you are using bf.bloom model. Is that open source and available to download, so we don't need to include it in the repo? |
@shahrokhDaijavad thanks for pointing this out. Currently, I am not aware of any small, downloadable models okay for this demonstration. Thus, I trained a small model locally. In the future, we can replace this local model path with a Hugging Face model when it is ready later I guess. |
Thank you, @ian-cho. The size of the model 240KB is quite small, but for us to include it statically in an IBM-owned open repo, we need permission from IBM. I will bring this up with Bhatta, who may be able to get permission for us. |
@BishwaBhatta As you may know, @ian-cho is using a small model that he has trained himself for this transform. This is fine for testing, but we cannot merge the code with that model included in the outer repo. So, if this small model will not be used at the end and an HF model will replace it, after successful testing, should we take it out before merging the code? |
@shahrokhDaijavad Hi, thanks for asking.
|
Thank you, @ian-cho, for testing with the large model. For consistency with everything else in DPK, I think we should stick with the contents instead of text for the document column. |
@shahrokhDaijavad ok, then can I comment out this line ? The transform does not need text or contents. By doing this, we can stick to |
@touma-I Do you see any problem with what @ian-cho is asking? |
@ian-cho Sorry that I did not test the notebook until today. I did a |
Hi, @shahrokhDaijavad, thank you for trying!
Sure, deleted.
It was the path issue on my end. In your screenshot, please uncomment the 18th line and comment out the 19th line to see if works. |
Signed-off-by: SHAHROKH DAIJAVAD <shahrokh@us.ibm.com>
Hi, @shahrokhDaijavad, I have no ideas why it failed. Your and @touma-I 's help would be appreciated! |
Why are these changes needed?
Add an additional column to indicate whether the document is present in the pre-existing Bloom filter model. This is specifically intended for the GneissWeb release.