Instructions to use Proooof/Finance_NLP_Toolkit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Proooof/Finance_NLP_Toolkit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Proooof/Finance_NLP_Toolkit")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Proooof/Finance_NLP_Toolkit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -44,8 +44,8 @@ Sentiment:
|
|
| 44 |
from transformers import pipeline
|
| 45 |
sentiment = pipeline(
|
| 46 |
"sentiment-analysis",
|
| 47 |
-
model="
|
| 48 |
-
tokenizer="
|
| 49 |
)
|
| 50 |
print(sentiment("The company reported record profits and raised guidance."))
|
| 51 |
|
|
|
|
| 44 |
from transformers import pipeline
|
| 45 |
sentiment = pipeline(
|
| 46 |
"sentiment-analysis",
|
| 47 |
+
model="Proooof/Finance-NLP-Toolkit", # after you push your fine-tuned weights
|
| 48 |
+
tokenizer="Proooof/Finance-NLP-Toolkit"
|
| 49 |
)
|
| 50 |
print(sentiment("The company reported record profits and raised guidance."))
|
| 51 |
|