Downloads · 30 days
0
mnguyn11/phobert-stock-sentiment-vn30
phobert-stock-sentiment-vn30 is a machine learning model from mnguyn11. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Model phân tích cảm xúc tin tức chứng khoán Việt Nam cho 30 mã cổ phiếu VN30.
Downloads · 30 days
0
Access
Public
Updated Mar 21, 2026
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.bin540 MB · 100%
From the Hugging Face model README
Model phân tích cảm xúc tin tức chứng khoán Việt Nam cho 30 mã cổ phiếu VN30.
| label_id | Nhãn | Ý nghĩa |
|---|---|---|
| 0 | NEG | Tiêu cực |
| 1 | POS | Tích cực |
| 2 | NEU | Trung tính |
!pip install transformers torch underthesea pandas tqdm huggingface_hub
!git clone https://huggingface.co/mnguyn11/phobert-stock-sentiment-vn30
import sys
sys.path.append("/content/phobert-stock-sentiment-vn30")
from modeling import StockSentimentPredictor
predictor = StockSentimentPredictor()
# Test 1 câu
print(predictor.predict("ACB", "ACB tăng trần hôm nay"))
# Test batch
df_test = pd.read_excel("/content/test_file.xlsx")
df_result = predictor.predict_batch(df_test)
df_result.to_excel("/content/result.xlsx", index=False)
print(df_result[["stock", "text", "pred_label", "confidence"]].head(10))
vinai/phobert-base