Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
|
|
| 1 |
license: apache-2.0
|
| 2 |
-
|
| 3 |
-
- sentiment-analysis
|
| 4 |
pipeline_tag: text-classification
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
base_model: ProsusAI/finbert
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
|
| 8 |
# My Sentiment Model
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
|
|
|
| 12 |
```python
|
| 13 |
from transformers import pipeline
|
| 14 |
sentiment_pipeline = pipeline(
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
library_name: transformers
|
|
|
|
| 4 |
pipeline_tag: text-classification
|
| 5 |
+
tags:
|
| 6 |
+
- sentiment-analysis
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
base_model: ProsusAI/finbert
|
| 10 |
+
datasets:
|
| 11 |
+
- utyug1/sentiment_dataset
|
| 12 |
---
|
| 13 |
|
| 14 |
# My Sentiment Model
|
| 15 |
|
| 16 |
+
This is a model which was for test purpose fine-tuned from [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert) on [utyug1/sentiment_dataset](https://huggingface.co/datasets/utyug1/sentiment_dataset).
|
| 17 |
+
|
| 18 |
+
## Usage
|
| 19 |
```python
|
| 20 |
from transformers import pipeline
|
| 21 |
sentiment_pipeline = pipeline(
|
| 22 |
+
"text-classification",
|
| 23 |
+
model="utyug1/finbert-finetuned-model",
|
| 24 |
+
return_all_scores=True
|
| 25 |
+
)
|
| 26 |
+
print(sentiment_pipeline("Markets rallied on positive earnings."))
|