Text Classification
Transformers
Safetensors
English
bert
sentiment-analysis
finance
english
text-embeddings-inference
Instructions to use marcev/financebert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use marcev/financebert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="marcev/financebert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("marcev/financebert") model = AutoModelForSequenceClassification.from_pretrained("marcev/financebert") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -43,7 +43,7 @@ def predict(text):
|
|
| 43 |
return predictions
|
| 44 |
|
| 45 |
text = "Your sample text here."
|
| 46 |
-
predict(text)
|
| 47 |
```
|
| 48 |
# Examples
|
| 49 |
Try out these examples to see FinanceBert in action:
|
|
|
|
| 43 |
return predictions
|
| 44 |
|
| 45 |
text = "Your sample text here."
|
| 46 |
+
predict(text)
|
| 47 |
```
|
| 48 |
# Examples
|
| 49 |
Try out these examples to see FinanceBert in action:
|