Instructions to use JohanHeinsen/PE_header_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use JohanHeinsen/PE_header_classifier with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("JohanHeinsen/PE_header_classifier") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - setfit
How to use JohanHeinsen/PE_header_classifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("JohanHeinsen/PE_header_classifier") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -37,6 +37,7 @@ preds = model(["VI. Andre meddelelser", "1) Reserven er løbet bort."])
|
|
| 37 |
|
| 38 |
## Metrics:
|
| 39 |
Accuracy: 0.9977494373593399
|
|
|
|
| 40 |
F1: 0.953125
|
| 41 |
|
| 42 |
## BibTeX entry and citation info
|
|
|
|
| 37 |
|
| 38 |
## Metrics:
|
| 39 |
Accuracy: 0.9977494373593399
|
| 40 |
+
|
| 41 |
F1: 0.953125
|
| 42 |
|
| 43 |
## BibTeX entry and citation info
|