DisorBERT
is a double-domain adaptation of a BERT language model. First, is adapted to social media language, and then, adapted to the mental health domain. In both steps, it incorporated a lexical resource to guide the masking process of the language model and, therefore, to help it in paying more attention to words related to mental disorders.
We used the models provided by HuggingFace v4.24.0, and Pytorch v1.13.0.
In particular, for training the model we used a batch size of 256, Adam optimizer, with a learning rate of 1e
-5
, and cross-entropy as a loss function. We trained the model for three epochs using a GPU NVIDIA Tesla V100 32GB SXM2.
Usage
Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="citiusLTL/DisorBERT")
Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("citiusLTL/DisorBERT")
model = AutoModelForMaskedLM.from_pretrained("citiusLTL/DisorBERT")
@inproceedings{aragon-etal-2023-disorbert,
title = "{D}isor{BERT}: A Double Domain Adaptation Model for Detecting Signs of Mental Disorders in Social Media",
author = "Aragon, Mario and
Lopez Monroy, Adrian Pastor and
Gonzalez, Luis and
Losada, David E. and
Montes, Manuel",
booktitle = "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
month = Jul,
year = "2023",
address = "Toronto, Canada",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.acl-long.853",
doi = "10.18653/v1/2023.acl-long.853",
pages = "15305--15318",
}
Runs of citiusLTL DisorBERT on huggingface.co
264
Total runs
-13
24-hour runs
-3
3-day runs
-169
7-day runs
-398
30-day runs
More Information About DisorBERT huggingface.co Model
DisorBERT huggingface.co is an AI model on huggingface.co that provides DisorBERT's model effect (), which can be used instantly with this citiusLTL DisorBERT model. huggingface.co supports a free trial of the DisorBERT model, and also provides paid use of the DisorBERT. Support call DisorBERT model through api, including Node.js, Python, http.
DisorBERT huggingface.co is an online trial and call api platform, which integrates DisorBERT's modeling effects, including api services, and provides a free online trial of DisorBERT, you can try DisorBERT online for free by clicking the link below.
citiusLTL DisorBERT online free url in huggingface.co:
DisorBERT is an open source model from GitHub that offers a free installation service, and any user can find DisorBERT on GitHub to install. At the same time, huggingface.co provides the effect of DisorBERT install, users can directly use DisorBERT installed effect in huggingface.co for debugging and trial. It also supports api for free installation.