Skip to content

Introduce Base Comment Model and functionality to classify comments#4097

Open
jpangas wants to merge 3 commits intomozilla:masterfrom
jpangas:comment_model
Open

Introduce Base Comment Model and functionality to classify comments#4097
jpangas wants to merge 3 commits intomozilla:masterfrom
jpangas:comment_model

Conversation

@jpangas
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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