Text Classification
Transformers
Safetensors
English
me2bert
feature-extraction
Moral Foundation Prediction
MFT
Morality
Morality Values
BERTForMoralPrediction
Emotions
Events
https://aclanthology.org/2025.coling-main.638.pdf
custom_code
Instructions to use lorenzozan/ME2-BERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lorenzozan/ME2-BERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="lorenzozan/ME2-BERT", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("lorenzozan/ME2-BERT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,9 +19,7 @@ license: mit
|
|
| 19 |
In this work, we propose ME²-BERT, the first holistic framework for fine-tuning a pre-trained language model like BERT to the task of moral foundation prediction. ME²-BERT integrates events and emotions for learning domain-invariant morality-relevant text representations.
|
| 20 |
Our extensive experiments show that ME²-BERT outperforms existing state-of-the-art methods for moral foundation prediction, with an average percentage increase up to 35% in the out-of-domain scenario.
|
| 21 |
|
| 22 |
-
|
| 23 |
-
The source code is available [here](https://github.com/lorenzozangari/ME2-BERT). The link to the paper is [here](https://github.com/lorenzozangari/ME2-BERT).
|
| 24 |
-
|
| 25 |
|
| 26 |
## Training Data
|
| 27 |
ME²-BERT was fine-tuned on the [**E2MoCase dataset**](https://arxiv.org/pdf/2409.09001) (available upon request), which consists of 97,251 paragraphs from news articles encompassing both event-based and event-free samples. It includes annotations for:
|
|
|
|
| 19 |
In this work, we propose ME²-BERT, the first holistic framework for fine-tuning a pre-trained language model like BERT to the task of moral foundation prediction. ME²-BERT integrates events and emotions for learning domain-invariant morality-relevant text representations.
|
| 20 |
Our extensive experiments show that ME²-BERT outperforms existing state-of-the-art methods for moral foundation prediction, with an average percentage increase up to 35% in the out-of-domain scenario.
|
| 21 |
|
| 22 |
+
The link to the paper is [here](https://github.com/lorenzozangari/ME2-BERT). The source code is available [here](https://github.com/lorenzozangari/ME2-BERT).
|
|
|
|
|
|
|
| 23 |
|
| 24 |
## Training Data
|
| 25 |
ME²-BERT was fine-tuned on the [**E2MoCase dataset**](https://arxiv.org/pdf/2409.09001) (available upon request), which consists of 97,251 paragraphs from news articles encompassing both event-based and event-free samples. It includes annotations for:
|