Introduction of twitter-roberta-base-intimacy-latest
Model Details of twitter-roberta-base-intimacy-latest
cardiffnlp/twitter-roberta-base-intimacy-latest
This is a RoBERTa-base model trained on 154M tweets until the end of December 2022 and finetuned for intimacy analysis (regression on a single text) on the
TweetIntimacy
dataset of
SuperTweetEval
.
The original Twitter-based RoBERTa model can be found
here
.
Example
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch.nn.functional as F
model_name = "cardiffnlp/twitter-roberta-base-intimacy-latest"
model = AutoModelForSequenceClassification.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
text= '@user Furthermore, harassment is ILLEGAL in any form!'# with pipeline
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
pipe(text)
>> [{'label': 'LABEL_0', 'score': 0.5492708086967468}]
# alternatively
logits = model(**tokenizer(text, return_tensors="pt"))
prob = F.sigmoid(logits.logits).item()
>> 0.5492708086967468
@inproceedings{antypas2023supertweeteval,
title={SuperTweetEval: A Challenging, Unified and Heterogeneous Benchmark for Social Media NLP Research},
author={Dimosthenis Antypas and Asahi Ushio and Francesco Barbieri and Leonardo Neves and Kiamehr Rezaee and Luis Espinosa-Anke and Jiaxin Pei and Jose Camacho-Collados},
booktitle={Findings of the Association for Computational Linguistics: EMNLP 2023},
year={2023}
}
Runs of cardiffnlp twitter-roberta-base-intimacy-latest on huggingface.co
22
Total runs
0
24-hour runs
3
3-day runs
5
7-day runs
-12
30-day runs
More Information About twitter-roberta-base-intimacy-latest huggingface.co Model
More twitter-roberta-base-intimacy-latest license Visit here:
twitter-roberta-base-intimacy-latest huggingface.co is an AI model on huggingface.co that provides twitter-roberta-base-intimacy-latest's model effect (), which can be used instantly with this cardiffnlp twitter-roberta-base-intimacy-latest model. huggingface.co supports a free trial of the twitter-roberta-base-intimacy-latest model, and also provides paid use of the twitter-roberta-base-intimacy-latest. Support call twitter-roberta-base-intimacy-latest model through api, including Node.js, Python, http.
twitter-roberta-base-intimacy-latest huggingface.co is an online trial and call api platform, which integrates twitter-roberta-base-intimacy-latest's modeling effects, including api services, and provides a free online trial of twitter-roberta-base-intimacy-latest, you can try twitter-roberta-base-intimacy-latest online for free by clicking the link below.
cardiffnlp twitter-roberta-base-intimacy-latest online free url in huggingface.co:
twitter-roberta-base-intimacy-latest is an open source model from GitHub that offers a free installation service, and any user can find twitter-roberta-base-intimacy-latest on GitHub to install. At the same time, huggingface.co provides the effect of twitter-roberta-base-intimacy-latest install, users can directly use twitter-roberta-base-intimacy-latest installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
twitter-roberta-base-intimacy-latest install url in huggingface.co: