Update README.md
Browse files
README.md
CHANGED
|
@@ -1,13 +1,25 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
-
|
| 12 |
-
|
| 13 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Stock Sentiment Analysis
|
| 2 |
+
|
| 3 |
+
This model is a fine-tuned version of `microsoft/deberta-v3-base` for **stock sentiment analysis**.
|
| 4 |
+
|
| 5 |
+
## Model Details
|
| 6 |
+
- **Language**: English
|
| 7 |
+
- **Task**: Text Classification (Sentiment Analysis)
|
| 8 |
+
- **Classes**: Positive, Neutral, Negative
|
| 9 |
+
|
| 10 |
+
## Training
|
| 11 |
+
- Dataset: [Your Dataset Name or Description]
|
| 12 |
+
- Evaluation Metric: F1 Score
|
| 13 |
+
- Training Args: See `training_args.bin` for details.
|
| 14 |
+
|
| 15 |
+
## Usage
|
| 16 |
+
```python
|
| 17 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 18 |
+
|
| 19 |
+
tokenizer = AutoTokenizer.from_pretrained("vinD27/stock_sentiment_analysis")
|
| 20 |
+
model = AutoModelForSequenceClassification.from_pretrained("vinD27/stock_sentiment_analysis")
|
| 21 |
+
|
| 22 |
+
text = "The stock market is performing well today."
|
| 23 |
+
inputs = tokenizer(text, return_tensors="pt")
|
| 24 |
+
outputs = model(**inputs)
|
| 25 |
+
print(outputs.logits)
|