initial commit read me
Browse files
README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
metrics:
|
| 5 |
+
- accuracy
|
| 6 |
+
library_name: transformers
|
| 7 |
+
pipeline_tag: text-classification
|
| 8 |
+
tags:
|
| 9 |
+
- finance
|
| 10 |
+
widget:
|
| 11 |
+
- text: "The semiconductor market is seeing an unprecedented growth this year."
|
| 12 |
+
- text: "Due to the recent chip shortages, prices for electronics have increased."
|
| 13 |
+
- text: "As the AI blooms, major semiconductor manufacturers are ramping up production to meet demand."
|
| 14 |
+
- text: "Investors are wary of the semiconductor industry due to market volatility."
|
| 15 |
+
---
|
| 16 |
+
# Model Name
|
| 17 |
+
SFinBERT
|
| 18 |
+
|
| 19 |
+
## Description
|
| 20 |
+
This is part of Dissertaion Project of University of Glasgow MSc Software development Course
|
| 21 |
+
|
| 22 |
+
Utilizing the power of FinBERT, a model specifically trained for financial sentiment analysis, this tool adapts the foundational knowledge of FinBERT through transfer learning to cater to the semiconductor industry's nuances.
|
| 23 |
+
It's designed to analyze financial news sentiment uniquely tailored to the semiconductor sector, enabling a more precise interpretation of news impacts within this domain.
|
| 24 |
+
Harnessing both financial and semiconductor-specific insights, this sentiment analyzer offers a refined perspective, making it an essential tool for stakeholders, analysts, and enthusiasts in the semiconductor realm.
|
| 25 |
+
|
| 26 |
+
```python
|
| 27 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 28 |
+
|
| 29 |
+
tokenizer = AutoTokenizer.from_pretrained("Yt99/SFinBERT")
|
| 30 |
+
model = AutoModelForSequenceClassification.from_pretrained("Yt99/SFinBERT")
|
| 31 |
+
|
| 32 |
+
text = "Your example text here."
|
| 33 |
+
inputs = tokenizer(text, return_tensors="pt")
|
| 34 |
+
outputs = model(**inputs)
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
## Acknowledgments
|
| 38 |
+
Thanks to my supervisor, family and friends for supporting my work.
|