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

Introduce Base Comment Model and functionality to classify comments #4097

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jpangas
Copy link
Collaborator

@jpangas jpangas commented Mar 14, 2024

Issue:
Closes #4094

Comments:
This PR introduces work the base comment model and the necessary functions to work with classifying and predicting comments.
Other specific comment models e.g spamcomment in #3994 will inherit from it.


# TODO: Classify could choke on a single bug which could make the whole
# job to fails. What should we do here?
probs = model.classify(list(comments.values()), True)
Copy link
Member

Choose a reason for hiding this comment

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

We should pass the bug here as well i.e., (bug, comment)

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.

Prepare for classification of comments
2 participants