# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="visual-ds/bert-mini-hatexplain")# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("visual-ds/bert-mini-hatexplain")
model = AutoModelForMaskedLM.from_pretrained("visual-ds/bert-mini-hatexplain")Quick Links
Model of the paper:
Lucas E. Resck, Marcos M. Raimundo, Jorge Poco. "Exploring the Trade-off Between Model Performance and Explanation Plausibility of Text Classifiers Using Human Rationales," NAACL Findings 2024 (to appear).
Refer to https://github.com/visual-ds/plausible-nlp-explanations.
- Downloads last month
- -
# Gated model: Login with a HF token with gated access permission hf auth login