-
Notifications
You must be signed in to change notification settings - Fork 273
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
Add a param-free classification model #821
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
tests/test_cls.py
Outdated
("นี่เป็นบทความหนึ่ง", "Neutral") | ||
] | ||
model = GzipModel(training_data) | ||
self.assertIsNotNone(model.predict("รู้สึกดีจัง", k=3)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it better to modify this assert to also verify the correctness of the prediction?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can expect much from this few-shot classifier. May be sentiment analysis is not the best application to test either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
News classification seems to work well (at least on the paper)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I updated the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can expect much from this few-shot classifier. May be sentiment analysis is not the best application to test either.
I generally agree, but I just wanted to make the test suite slightly less confusing.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation looks good to me.
@wannaphong do we have to fix the MacOS error? |
I will fix the MacOS error after this pull request. The error is come from tensorflow (again). |
What does this changes
Add a param-free classification model from “Low-Resource” Text Classification: A Parameter-Free Classification Method with Compressors (Jiang et al., Findings 2023)
Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.