Text Classification
setfit
Safetensors
sentence-transformers
xlm-roberta
generated_from_setfit_trainer
text-embeddings-inference
Instructions to use mranonymaz/bol-topic-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use mranonymaz/bol-topic-classifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("mranonymaz/bol-topic-classifier") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use mranonymaz/bol-topic-classifier with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mranonymaz/bol-topic-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] - Notebooks
- Google Colab
- Kaggle
Push model using huggingface_hub.
Browse files- README.md +12 -12
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
|
@@ -5,7 +5,7 @@ tags:
|
|
| 5 |
- text-classification
|
| 6 |
- generated_from_setfit_trainer
|
| 7 |
widget:
|
| 8 |
-
- text:
|
| 9 |
- text: Kan ik direct contact opnemen als ik het verkeerde artikel heb gekregen?
|
| 10 |
- text: Waarom lukt het niet om mijn cadeaubon in te wisselen?
|
| 11 |
- text: Ik wil mijn Kobo Plus abonnement stopzetten.
|
|
@@ -101,12 +101,12 @@ preds = model("Mijn cadeaubon werkt niet.")
|
|
| 101 |
### Training Set Metrics
|
| 102 |
| Training set | Min | Median | Max |
|
| 103 |
|:-------------|:----|:-------|:----|
|
| 104 |
-
| Word count | 3 | 7.
|
| 105 |
|
| 106 |
| Label | Training Sample Count |
|
| 107 |
|:-----------------|:----------------------|
|
| 108 |
| do_not_forward | 384 |
|
| 109 |
-
| customer_support |
|
| 110 |
|
| 111 |
### Training Hyperparameters
|
| 112 |
- batch_size: (16, 16)
|
|
@@ -130,15 +130,15 @@ preds = model("Mijn cadeaubon werkt niet.")
|
|
| 130 |
### Training Results
|
| 131 |
| Epoch | Step | Training Loss | Validation Loss |
|
| 132 |
|:------:|:----:|:-------------:|:---------------:|
|
| 133 |
-
| 0.0024 | 1 | 0.
|
| 134 |
-
| 0.
|
| 135 |
-
| 0.
|
| 136 |
-
| 0.
|
| 137 |
-
| 0.
|
| 138 |
-
| 0.
|
| 139 |
-
| 0.
|
| 140 |
-
| 0.
|
| 141 |
-
| 0.
|
| 142 |
|
| 143 |
### Framework Versions
|
| 144 |
- Python: 3.11.4
|
|
|
|
| 5 |
- text-classification
|
| 6 |
- generated_from_setfit_trainer
|
| 7 |
widget:
|
| 8 |
+
- text: Ik wil mijn privacyvoorkeuren aanpassen, wat is donkere materie?
|
| 9 |
- text: Kan ik direct contact opnemen als ik het verkeerde artikel heb gekregen?
|
| 10 |
- text: Waarom lukt het niet om mijn cadeaubon in te wisselen?
|
| 11 |
- text: Ik wil mijn Kobo Plus abonnement stopzetten.
|
|
|
|
| 101 |
### Training Set Metrics
|
| 102 |
| Training set | Min | Median | Max |
|
| 103 |
|:-------------|:----|:-------|:----|
|
| 104 |
+
| Word count | 3 | 7.2931 | 15 |
|
| 105 |
|
| 106 |
| Label | Training Sample Count |
|
| 107 |
|:-----------------|:----------------------|
|
| 108 |
| do_not_forward | 384 |
|
| 109 |
+
| customer_support | 295 |
|
| 110 |
|
| 111 |
### Training Hyperparameters
|
| 112 |
- batch_size: (16, 16)
|
|
|
|
| 130 |
### Training Results
|
| 131 |
| Epoch | Step | Training Loss | Validation Loss |
|
| 132 |
|:------:|:----:|:-------------:|:---------------:|
|
| 133 |
+
| 0.0024 | 1 | 0.41 | - |
|
| 134 |
+
| 0.1176 | 50 | 0.2493 | - |
|
| 135 |
+
| 0.2353 | 100 | 0.0526 | - |
|
| 136 |
+
| 0.3529 | 150 | 0.0052 | - |
|
| 137 |
+
| 0.4706 | 200 | 0.0005 | - |
|
| 138 |
+
| 0.5882 | 250 | 0.0004 | - |
|
| 139 |
+
| 0.7059 | 300 | 0.0002 | - |
|
| 140 |
+
| 0.8235 | 350 | 0.0002 | - |
|
| 141 |
+
| 0.9412 | 400 | 0.0002 | - |
|
| 142 |
|
| 143 |
### Framework Versions
|
| 144 |
- Python: 3.11.4
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1112197096
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f82b064cdf1f9e771f39a2fcbec292cf229d7fe428f708f7fd7de7d1b38de1e
|
| 3 |
size 1112197096
|
model_head.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7007
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f09bf3a8807d14938bdae9691505181d8fcc1eec5771d1797424fdb0171058f
|
| 3 |
size 7007
|