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

Added default argument for instantiating ToxicityFilter class #363

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

Conversation

saqibns
Copy link
Contributor

@saqibns saqibns commented Nov 2, 2021

Added a default argument to enable the instantiation of the ToxicityFilter class without providing any arguments. This was required because the evaluation interface for robustness lacks the option of providing custom options for instantiating classes.

@AbinayaM02 AbinayaM02 added enhancement New feature or request filter labels Nov 25, 2021
Copy link
Collaborator

@AbinayaM02 AbinayaM02 left a comment

Choose a reason for hiding this comment

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

Hi @saqibns: Thank you for adding this enhancement. Please pull the main once and we can merge your changes.

@@ -24,7 +24,7 @@ class ToxicityFilter(SentenceOperation):

Copy link
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.

@@ -24,7 +24,7 @@ class ToxicityFilter(SentenceOperation):

def __init__(
Copy link
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request filter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants