Text Classification
Transformers
Safetensors
English
Thai
xlm-roberta
sentiment-analysis
financial-sentiment
multilingual
transformer
fine-tuned
1.0.0
text-embeddings-inference
Instructions to use ZombitX64/Fin-E5-pro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZombitX64/Fin-E5-pro with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ZombitX64/Fin-E5-pro")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ZombitX64/Fin-E5-pro") model = AutoModelForSequenceClassification.from_pretrained("ZombitX64/Fin-E5-pro") - Notebooks
- Google Colab
- Kaggle
Fin-E5-pro Financial Sentiment Analysis Model
This is a fine-tuned sentiment analysis model based on intfloat/multilingual-e5-large-instruct for financial text, supporting both English and Thai languages.
Model Details
- Base Model:
intfloat/multilingual-e5-large-instruct - Fine-tuning Dataset: A custom dataset containing financial news headlines and tweets in English and Thai, labeled with sentiment (No Impact, Bullish, Bearish). The dataset was created by combining
financial-sentiment.jsonlandvalidation.jsonl. - Task: Sentiment Classification
- Labels:
- 0: No Impact
- 1: Bullish
- 2: Bearish
Training
The model was fine-tuned using the Hugging Face Transformers library.
- Optimizer: AdamW
- Learning Rate: 2e-5
- Epochs: 3
- Batch Size: 18
- Evaluation Strategy: Evaluated at the end of each epoch.
- Saving Strategy: Model checkpoints saved at the end of each epoch.
- Metric for Best Model: Accuracy
Evaluation Results
The model was evaluated on a custom financial sentiment dataset for comparison with other models.
| Model | Accuracy | Negative F1 | Neutral F1 | Positive F1 |
|---|---|---|---|---|
| ModernFinBERT | 0.0000 | 0.0000 | 0.0000 | 0.0000 |
| FinBERT | 0.6000 | 1.0000 | 0.0000 | 0.5000 |
| tabularisai/ModernFinBERT | 0.8000 | 1.0000 | 0.0000 | 0.8000 |
Usage
You can use this model with the Hugging Face Transformers library:
- Downloads last month
- 10
Model tree for ZombitX64/Fin-E5-pro
Base model
intfloat/multilingual-e5-large-instruct