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

Support new HF models. #1129

Merged
merged 5 commits into from
Jun 6, 2024
Merged

Support new HF models. #1129

merged 5 commits into from
Jun 6, 2024

Conversation

Liraim
Copy link
Collaborator

@Liraim Liraim commented May 27, 2024

Examples:

ColumnSummaryMetric(GeneralHuggingFaceModel(model="SamLowe/roberta-base-go_emotions", params={"label": "disappointment"}).on("Review_Text"))
ColumnSummaryMetric(GeneralHuggingFaceModel(model="openai-community/roberta-base-openai-detector", params={"score_threshold": 0.7}).on("Review_Text"))
ColumnSummaryMetric(GeneralHuggingFaceModel(model="MoritzLaurer/DeBERTa-v3-large-mnli-fever-anli-ling-wanli", params={"labels": ["positive", "negative"]}).on("Review_Text"))
ColumnSummaryMetric(GeneralHuggingFaceModel(model="DaNLP/da-electra-hatespeech-detection").on("Review_Text"))
ColumnSummaryMetric(GeneralHuggingFaceModel(model="facebook/roberta-hate-speech-dynabench-r4-target").on("Review_Text"))
ColumnSummaryMetric(HuggingFaceToxicityModel().on("Review_Text"))
ColumnSummaryMetric(HuggingFaceToxicityModel(model="DaNLP/da-electra-hatespeech-detection", toxic_label="offensive").on("Review_Text"))

@emeli-dral emeli-dral merged commit 50468e0 into main Jun 6, 2024
23 checks passed
@emeli-dral emeli-dral deleted the feature/hf-models branch June 6, 2024 10:15
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.

2 participants