Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion filters/toxicity/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ToxicityFilter(SentenceOperation):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It would be great if you can add docstring for your classes and functions.

def __init__(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please add keywords for your filter.

self,
toxicity_type: ToxicityTypes,
toxicity_type: ToxicityTypes = ToxicityTypes.TOXICITY,
op: str = ">",
threshold: float = 0.5,
):
Expand Down