Downloads · 30 days
14
3% of all-time downloads
kfkas/RoBERTa-large-Detection-G2P
RoBERTa-large-Detection-G2P is a text classification model from kfkas. Use it when you need a label for a piece of text. It is set up for transformers.
이 모델은 klue/roberta-large을 국립 국어원 신문 말뭉치 5만개의 문장을 2021을 g2pK로 훈련시켜 G2P된 데이터를 탐지합니다.<br git : https://github.com/taemin6697<br
Downloads · 30 days
14
3% of all-time downloads
All-time downloads
556
Public
Parameters
337M
5.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.pt2.7 GB · 50%
How the weights are stored.
F32337M · 100%
From the Hugging Face model README
이 모델은 klue/roberta-large을 국립 국어원 신문 말뭉치 5만개의 문장을 2021을 g2pK로 훈련시켜 G2P된 데이터를 탐지합니다.<br> git : https://github.com/taemin6697<br>
from transformers import AutoTokenizer, RobertaForSequenceClassification
import torch
import numpy as np
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model_dir = "kfkas/RoBERTa-large-Detection-G2P"
tokenizer = AutoTokenizer.from_pretrained('klue/roberta-large')
model = RobertaForSequenceClassification.from_pretrained(model_dir).to(device)
text = "월드커 파나은행 대표티메 행우늬 이달러 이영영장 선물"
with torch.no_grad():
x = tokenizer(text, padding='max_length', truncation=True, return_tensors='pt', max_length=128)
y_pred = model(x["input_ids"].to(device))
logits = y_pred.logits
y_pred = logits.detach().cpu().numpy()
y = np.argmax(y_pred)
print(y)
#1
More information needed
More information needed
The following hyperparameters were used during training: