Downloads · 30 days
5
1% of all-time downloads
oeg/RoBERTa-Repository-Proposal
RoBERTa-Repository-Proposal is a text classification model from oeg. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
- Language: English - Model Name: oeg/RoBERTaRepositoryProposal
Downloads · 30 days
5
1% of all-time downloads
All-time downloads
683
Public
Parameters
125M
499 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors499 MB · 100%
From the Hugging Face model README
This model is a fine-tuned RoBERTa-base model trained to classify sentences into two classes: proposal and non-proposal sentences. The training data includes sentences proposing a software or data repository. The model is trained to recognize and classify these sentences accurately.
To use this model in Python:
from transformers import RobertaForSequenceClassification, RobertaTokenizer
import torch
tokenizer = RobertaTokenizer.from_pretrained("roberta-base")
model = RobertaForSequenceClassification.from_pretrained("oeg/RoBERTa-Repository-Proposal")
sentence = "Your input sentence here."
inputs = tokenizer(sentence, return_tensors="pt")
outputs = model(**inputs)
probabilities = torch.nn.functional.softmax(outputs.logits, dim=1)