Downloads · 30 days
13
41% of all-time downloads
Halfotter/korean-xlm-roberta-classifier
korean-xlm-roberta-classifier is a text classification model from Halfotter. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This model is converted from a custom classifier to be compatible with Hugging Face Inference API.
Downloads · 30 days
13
41% of all-time downloads
All-time downloads
32
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 50%
From the Hugging Face model README
This model is converted from a custom classifier to be compatible with Hugging Face Inference API.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load directly from Hugging Face Hub
tokenizer = AutoTokenizer.from_pretrained("Halftotter/korean-xlm-roberta-classifier")
model = AutoModelForSequenceClassification.from_pretrained("Halftotter/korean-xlm-roberta-classifier")
# Predict
inputs = tokenizer("원본 투입물명", return_tensors="pt")
outputs = model(**inputs)
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
print(predictions)