Instructions to use JakobLindscheid/moral_foundations_cheating-roberta-DANN-mfnc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JakobLindscheid/moral_foundations_cheating-roberta-DANN-mfnc with Transformers:
# Load model directly from transformers import AutoTokenizer, RobertaForDomainAdversarialMoralityDetection tokenizer = AutoTokenizer.from_pretrained("JakobLindscheid/moral_foundations_cheating-roberta-DANN-mfnc") model = RobertaForDomainAdversarialMoralityDetection.from_pretrained("JakobLindscheid/moral_foundations_cheating-roberta-DANN-mfnc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model Card for JakobLindscheid/moral_foundations_cheating-roberta-DANN-mfnc
This model is part of the Master Thesis "Domain-adversarial moral foundation prediction for long EU legal documents". All related code is published on GitHub.
The models are finetuned for classifying moral foundations. We use domain-adversarial training to transfer knowledge from a labeled source domain to an unlabeled target domain.
This specific model is a finetuned FacebookAI/roberta-base model that identifies the cheating foundation, uses the MFTC and MFRC as source domain and the MFNC as target domain.
Refer to JakobLindscheid/moral_foundations_ensemble-roberta-DANN-mfnc, which wraps all single label models in an ensemble model.
Overview of ensemble models
| Base model | Target domain | Model |
|---|---|---|
google-bert/bert-base-uncased |
MFNC | JakobLindscheid/moral_foundations_ensemble-bert-DANN-mfnc |
google-bert/bert-base-uncased |
EU docs | JakobLindscheid/moral_foundations_ensemble-bert-DANN-eu_docs |
FacebookAI/roberta-base |
MFNC | JakobLindscheid/moral_foundations_ensemble-roberta-DANN-mfnc |
FacebookAI/roberta-base |
EU docs | JakobLindscheid/moral_foundations_ensemble-roberta-DANN-eu_docs |
- Downloads last month
- 2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for JakobLindscheid/moral_foundations_cheating-roberta-DANN-mfnc
Base model
FacebookAI/roberta-base