Downloads · 30 days
4
11% of all-time downloads
blockenters/bert-based-uncased-agnews4-v01
bert-based-uncased-agnews4-v01 is a machine learning model from blockenters. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
이 모델은 bert-base-uncased를 기반으로 파인튜닝한 텍스트 분류 모델입니다. 데이터셋으로는 AG News를 사용하였으며, 총 4개의 카테고리(세계뉴스, 스포츠, 비즈니스, 과학/기술)로 분류할 수 있습니다.
Downloads · 30 days
4
11% of all-time downloads
All-time downloads
36
Public
Parameters
109M
876 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
이 모델은 **bert-base-uncased**를 기반으로 파인튜닝한 텍스트 분류 모델입니다.
데이터셋으로는 AG News를 사용하였으며, 총 4개의 카테고리(세계뉴스, 스포츠, 비즈니스, 과학/기술)로 분류할 수 있습니다.
베이스 모델: bert-base-uncased
파인튜닝 데이터: AG News
태스크(Task): 텍스트 분류 (4-class classification)
라벨(Label) 정의:
0: 세계뉴스 (World News)1: 스포츠 (Sports)2: 비즈니스 (Business)3: 과학/기술 (Sci/Tech)from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# 모델 로드
model_name = "blockenters/bert-based-uncased-agnews4-v01"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# 입력 예시
text = "NASA launches a new satellite into space"
inputs = tokenizer(text, return_tensors="pt")
# 추론
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.argmax(outputs.logits, dim=-1)
print("Predicted label:", predictions.item())
평가 데이터셋: AG News test set
메트릭: Accuracy
결과 (예시 값, 직접 측정해서 채워주세요):
0.860.86bert-base-uncased)의 라이선스는 Apache 2.0입니다.