Text Classification
Transformers
PyTorch
Safetensors
Korean
xlm-roberta
korean
text-embeddings-inference
Instructions to use Halfotter/korean-xlm-roberta-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Halfotter/korean-xlm-roberta-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Halfotter/korean-xlm-roberta-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Halfotter/korean-xlm-roberta-classifier") model = AutoModelForSequenceClassification.from_pretrained("Halfotter/korean-xlm-roberta-classifier") - Notebooks
- Google Colab
- Kaggle
Korean XLM-RoBERTa Classifier (HF Compatible)
This model is converted from a custom classifier to be compatible with Hugging Face Inference API.
Model Info
- Base Model: xlm-roberta-base
- Task: text-classification
- Language: Korean
- Labels: 66
Usage
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)
- Downloads last month
- 2
Model tree for Halfotter/korean-xlm-roberta-classifier
Base model
FacebookAI/xlm-roberta-base