vanhai123/vietnamese-social-comments
Viewer • Updated • 4.9k • 32 • 11
How to use vanhai123/phobert-vi-comment-4class with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="vanhai123/phobert-vi-comment-4class") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("vanhai123/phobert-vi-comment-4class")
model = AutoModelForSequenceClassification.from_pretrained("vanhai123/phobert-vi-comment-4class")Đây là mô hình phân loại bình luận tiếng Việt thành 4 nhãn cảm xúc sử dụng vinai/phobert-base.
positive – tích cựcnegative – tiêu cựcneutral – trung lậptoxic – kích động, phản cảmvinai/phobert-basevanhai123/vietnamese-social-comments gồm 4,896 bình luận từ TikTok, Facebook, YouTube.from transformers import pipeline
classifier = pipeline("text-classification", model="vanhai123/phobert-vi-comment-4class")
classifier("Video này thật sự rất bổ ích và thú vị!")