这是indexloc提供的服务,不要输入任何密码
Skip to content

[toxicity] Arguments of toxicity.load() should be optional #969

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

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

Conversation

lindapaiste
Copy link

@lindapaiste lindapaiste commented Mar 13, 2022

This is a very minor TypeScript fix.

The arguments threshold and toxicityLabels are optional when calling new ToxicityClassifier(); but they are incorrectly marked as required on the exported load() function.

This PR adds two question marks to fix this.


This change is Reviewable

@pyu10055 pyu10055 closed this Jun 2, 2022
@pyu10055 pyu10055 reopened this Jun 2, 2022
@pyu10055 pyu10055 requested a review from ahmedsabie August 30, 2022 16:23
Copy link
Collaborator

@pyu10055 pyu10055 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @ahmedsabie)

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.

3 participants